Strip PNG:datemodify metadata?

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?".
Post Reply
fotinakis
Posts: 4
Joined: 2015-03-19T23:01:50-07:00
Authentication code: 6789

Strip PNG:datemodify metadata?

Post by fotinakis »

Hey friends,

I previously used "convert -strip" to remove PNG:datemodify metadata, but found this behavior changed in 6.8.9:
# 2014-04-22 6.8.9-1 Glenn Randers-Pehrson <glennrp@image...>
# * The "-strip" option now only removes profiles and comments from PNG
# output. Previously the background, density, and other metadata were
# also discarded.
Is there a way in newer versions to accomplish the same as the old -strip command? Specifically, I need the PNG:datemodify metadata to be removed.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Strip PNG:datemodify metadata?

Post by fmw42 »

I am not an expert on PNG, but I only see date:modify and not PNG:datemodify in my PNG test file.

Using +set date:modify, you can reset it to the current date and time. But that does not remove the property.

I would suggest you look into EXIFTOOL.

But you can wait until the IM PNG developer responds. He will know more about this than I.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Strip PNG:datemodify metadata?

Post by snibgo »

Try "-define png:include-chunk=none". See viewtopic.php?f=1&t=29957&p=134858
snibgo's IM pages: im.snibgo.com
Post Reply