Consequentially, images produced by ImageMagick contain misleading information. It also means that if you rename or change the permissions
of a file, images converted from that file are no longer byte-for-byte identical with images previously produced from that file, even though the file didn't actually change.
Unfortunately, Unix doesn't provide any way to get a file's creation time. I therefore propose that ImageMagick simply stop setting the "date:create" property. The following patch accomplishes this. Could it be applied to ImageMagick? Cheers!
Code: Select all
Index: MagickCore/constitute.c
===================================================================
--- MagickCore/constitute.c (revision 16820)
+++ MagickCore/constitute.c (working copy)
@@ -721,9 +721,6 @@
(void) FormatMagickTime(GetBlobProperties(next)->st_mtime,MaxTextExtent,
timestamp);
(void) SetImageProperty(next,"date:modify",timestamp,exception);
- (void) FormatMagickTime(GetBlobProperties(next)->st_ctime,MaxTextExtent,
- timestamp);
- (void) SetImageProperty(next,"date:create",timestamp,exception);
option=GetImageOption(image_info,"delay");
if (option != (const char *) NULL)
{