Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
In my use case, this is an issue since the destination PNGs are part of a Git repository, so each time they are regenerated from the source PDF, even if that latter hasn't changed, Git mark the PNGs as modified since something has changed at the binary level.
Is there some options or other post-processing I could use to ensure conversion from PDF produces _exactly_ the same output PNG?
# Metadata name seems to be case-sensitive!
convert in.pdf -set datecreate "" -set "Modify Date" "" -set "datemodify" "" out1.png
exiftool -G -e -n out1.png
[ExifTool] ExifTool Version Number : 10.40
[...]
[PNG] Pixel Units : 0
[PNG] Datecreate :
[PNG] Datemodify :
[PNG] Modify Date :
[PNG] Pdf Hi Res Bounding Box : 1x1+0+0
[PNG] Pdf Version : PDF-1.3 1 0 obj <<
Interestingly, `exiftool` is able to remove the `PNG:Modify Date` tag. But not `PNG:Datecreate` and `PNG:Datemodify` which seems non-standard PNG metadata. Or am I wrong?
$ exiftool -PNG:"ModifyDate"= out1.png
1 image files updated
$ exiftool -PNG:"datecreate"= out1.png
Warning: Tag 'PNG:datecreate' is not defined
Nothing to do.
$ exiftool -PNG:"datemodify"= out1.png
Warning: Tag 'PNG:datemodify' is not defined
Nothing to do.