only there for debugging purposes and was consuming a huge amount
of CPU time. (reference
http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=17799).
+ * Sometimes black was still written as transparent, when the PNG
+ encoder receives an image with image->matte on but no transparent
+ pixels are present. (reference
+ http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=17913);
2011-01-24 6.6.7-3 Cristy <quetzlzacatenango@image...>
* Remove memory leak from ThrowFileException() macro (reference
(void)LogMagickEvent(CoderEvent,GetMagickModule(),
" image->matte=%d",(int) image->matte);
+ /* Set to an out-of-range color unless tRNS chunk is present */
+ transparent_color.red=65537;
+ transparent_color.green=65537;
+ transparent_color.blue=65537;
+ transparent_color.opacity=65537;
+
/*
Allocate the PNG structures
*/
}
#endif
- /* Set to an out-of-range color unless tRNS chunk is present */
- transparent_color.red=65537;
- transparent_color.green=65537;
- transparent_color.blue=65537;
- transparent_color.opacity=65537;
-
if (png_get_valid(ping,ping_info,PNG_INFO_tRNS))
{
/*
" Added an opaque matte channel");
}
- if (image->matte == MagickTrue)
+ if (number_transparent != 0 || number_semitransparent != 0)
{
if (ping_color_type < 4)
- if (ping_color_type != 3 || ping_num_trans > 0)
{
ping_have_tRNS=MagickTrue;
if (logging != MagickFalse)