(void) SetImageProperty(image,"png:PLTE.number_colors",msg,
exception);
}
-
+ }
#if defined(PNG_tIME_SUPPORTED)
- read_tIME_chunk(image,ping,ping_info,exception);
+ read_tIME_chunk(image,ping,ping_info,exception);
#endif
- }
+
/*
Read image scanlines.
const char
*timestamp;
- timestamp=GetImageOption(image_info,"png:tIME");
- if (timestamp != (const char *) NULL)
- write_tIME_chunk(image,ping,ping_info,timestamp,exception);
- else
+ if (image->taint == MagickFalse)
{
- if (image->taint == MagickFalse)
+ timestamp=GetImageOption(image_info,"png:tIME");
+
+ if (timestamp == (const char *) NULL)
timestamp=GetImageProperty(image,"png:tIME",exception);
- write_tIME_chunk(image,ping,ping_info,timestamp,exception);
}
+
+ else
+ {
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " Reset tIME in tainted image");
+
+ timestamp=GetImageProperty(image,"date:modify",exception);
+ }
+
+ if (timestamp != (const char *) NULL)
+ write_tIME_chunk(image,ping,ping_info,timestamp,exception);
}
#endif
-
+
if (mng_info->need_blob != MagickFalse)
{
if (OpenBlob(image_info,image,WriteBinaryBlobMode,exception) ==