+2010-11-26 6.6.6-0 Glenn Randers-Pehrson <glennrp@image...>
+ * Fixed another case where the PNG encoder lost transparency (reference
+http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=17516).
+
2010-11-23 6.6.6-0 Cristy <quetzlzacatenango@image...>
* The policy.xml sets not-to-exceed resource values (e.g. policy memory limit
1GB, -limit 2GB exceeds policy maximum so memory limit is 1GB).
#define MNG_COALESCE_LAYERS /* In 5.4.4, this interfered with MMAP'ed files. */
#define MNG_INSERT_LAYERS /* Troublesome, but seem to work as of 5.4.4 */
#define PNG_BUILD_PALETTE /* This works as of 5.4.3. */
+#if 0
#define PNG_SORT_PALETTE /* This works as of 5.4.0 but not in 6.5. */
+#endif
#if defined(MAGICKCORE_JPEG_DELEGATE)
# define JNG_SUPPORTED /* Not finished as of 5.5.2. See "To do" comments. */
#endif
#endif
#if (MAGICKCORE_QUANTUM_DEPTH >= 16)
- if (mng_info->write_png_colortype != 16)
+ if (image_depth == 16 && mng_info->write_png_colortype != 16)
if (LosslessReduceDepthOK(image) != MagickFalse)
image->depth = 8;
#endif
image_matte=image->matte;
#ifdef PNG_BUILD_PALETTE
-
if (((mng_info->write_png_colortype-1) == PNG_COLOR_TYPE_PALETTE) ||
(mng_info->write_png_colortype == 0 && image->depth <= 8))
{
#endif
mng_info->IsPalette=image->storage_class == PseudoClass &&
- image_colors <= 256 && !IsOpaqueImage(image,&image->exception);
+ image_colors <= 256;
/*
Allocate the PNG structures