gimp r27358 - in trunk: . plug-ins/file-psd



Author: neo
Date: Wed Oct 22 06:47:18 2008
New Revision: 27358
URL: http://svn.gnome.org/viewvc/gimp?rev=27358&view=rev

Log:
2008-10-22  Sven Neumann  <sven gimp org>

	Bug 556741 â Alpha layer automatically added (in psd format) but
	not desired

	* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke
	that flattens the projection for indexed images.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/file-psd/psd-save.c

Modified: trunk/plug-ins/file-psd/psd-save.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-save.c	(original)
+++ trunk/plug-ins/file-psd/psd-save.c	Wed Oct 22 06:47:18 2008
@@ -1544,6 +1544,11 @@
       if (! transparency_found)
         gimp_layer_flatten (projection);
     }
+  else
+    {
+      if (gimp_drawable_has_alpha (projection))
+        gimp_layer_flatten (projection);  /* PSDs don't support transparency information in indexed images*/
+    }
 
   return projection;
 }



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