[gimp] Bug 599065 - PNG output: omit unwanted chunks (sRGB)



commit ed872c7c6e53a187e76e06f9a081c91370466f92
Author: Omari Stephens <xsdg xsdg org>
Date:   Sun Jan 30 21:34:19 2011 +0100

    Bug 599065 - PNG output: omit unwanted chunks (sRGB)
    
    If the image has neither a gamma set nor a color profile set, then we
    should leave the image untagged. We should not tag as sRGB by default
    because it is too arbitrary.

 plug-ins/common/file-png.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index be3b4c6..0cc0fc8 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1454,10 +1454,6 @@ save_image (const gchar  *filename,
 
         g_free (profile_name);
       }
-    else if (! pngvals.gama)
-      {
-        png_set_sRGB (pp, info, 0);
-      }
   }
 #endif
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]