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

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.


svn path=/trunk/; revision=27358
This commit is contained in:
Sven Neumann 2008-10-22 06:47:18 +00:00 committed by Sven Neumann
parent b6ae85b74c
commit 2b892dd8b2
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,11 @@
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.
2008-10-22 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.c

View File

@ -1544,6 +1544,11 @@ create_merged_image (gint32 image_id)
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;
}