ping_pHYs_y_resolution = 0;
ping_have_blob=MagickFalse;
+ ping_have_cheap_transparency=MagickFalse;
ping_have_color=MagickTrue;
ping_have_non_bw=MagickTrue;
ping_have_PLTE=MagickFalse;
if (value != (char *) NULL)
{
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " Format=%s",value);
+
mng_info->write_png8 = MagickFalse;
mng_info->write_png24 = MagickFalse;
mng_info->write_png32 = MagickFalse;
else if (LocaleCompare(value,"png64") == 0)
mng_info->write_png64 = MagickTrue;
- }
-
- if (LocaleCompare(value,"png00") == 0)
- {
- /* Retrieve png:IHDR.bit-depth-orig and png:IHDR.color-type-orig
- Note that whitespace at the end of the property names must match
- that in the corresponding SetImageProperty() calls.
- */
- (void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " Format=%s",value);
- value=GetImageProperty(image,"png:IHDR.bit-depth-orig ",exception);
-
- (void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " png00 inherited bit depth=%s",value);
-
- if (value != (char *) NULL)
+ else if (LocaleCompare(value,"png00") == 0)
{
- if (LocaleCompare(value,"1") == 0)
- mng_info->write_png_depth = 1;
-
- else if (LocaleCompare(value,"1") == 0)
- mng_info->write_png_depth = 2;
-
- else if (LocaleCompare(value,"2") == 0)
- mng_info->write_png_depth = 4;
-
- else if (LocaleCompare(value,"8") == 0)
- mng_info->write_png_depth = 8;
-
- else if (LocaleCompare(value,"16") == 0)
- mng_info->write_png_depth = 16;
- }
-
- value=GetImageProperty(image,"png:IHDR.color-type-orig ",exception);
-
- (void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " png00 inherited color type=%s",value);
-
- if (value != (char *) NULL)
- {
- if (LocaleCompare(value,"0") == 0)
- mng_info->write_png_colortype = 1;
-
- else if (LocaleCompare(value,"2") == 0)
- mng_info->write_png_colortype = 3;
-
- else if (LocaleCompare(value,"3") == 0)
- mng_info->write_png_colortype = 4;
-
- else if (LocaleCompare(value,"4") == 0)
- mng_info->write_png_colortype = 5;
-
- else if (LocaleCompare(value,"6") == 0)
- mng_info->write_png_colortype = 7;
+ /* Retrieve png:IHDR.bit-depth-orig and png:IHDR.color-type-orig
+ Note that whitespace at the end of the property names must match
+ that in the corresponding SetImageProperty() calls.
+ */
+ value=GetImageProperty(image,"png:IHDR.bit-depth-orig ",exception);
+
+ if (value != (char *) NULL)
+ {
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " png00 inherited bit depth=%s",value);
+
+ if (LocaleCompare(value,"1") == 0)
+ mng_info->write_png_depth = 1;
+
+ else if (LocaleCompare(value,"1") == 0)
+ mng_info->write_png_depth = 2;
+
+ else if (LocaleCompare(value,"2") == 0)
+ mng_info->write_png_depth = 4;
+
+ else if (LocaleCompare(value,"8") == 0)
+ mng_info->write_png_depth = 8;
+
+ else if (LocaleCompare(value,"16") == 0)
+ mng_info->write_png_depth = 16;
+ }
+
+ value=GetImageProperty(image,"png:IHDR.color-type-orig ",exception);
+
+ if (value != (char *) NULL)
+ {
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " png00 inherited color type=%s",value);
+
+ if (LocaleCompare(value,"0") == 0)
+ mng_info->write_png_colortype = 1;
+
+ else if (LocaleCompare(value,"2") == 0)
+ mng_info->write_png_colortype = 3;
+
+ else if (LocaleCompare(value,"3") == 0)
+ mng_info->write_png_colortype = 4;
+
+ else if (LocaleCompare(value,"4") == 0)
+ mng_info->write_png_colortype = 5;
+
+ else if (LocaleCompare(value,"6") == 0)
+ mng_info->write_png_colortype = 7;
+ }
}
}