Page 1 of 1

[solved] -strip adds additional tags to the image

Posted: 2010-09-13T09:38:55-07:00
by broucaries
From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594693

$ convert 1x1_.png -strip 1x1.png
$ ls -lh 1x1*
-rw-r--r-- 1 hramrach hramrach 85 2010-08-28 14:07 1x1_.png
-rw-r--r-- 1 hramrach hramrach 282 2010-08-28 14:18 1x1.png

Re: -strip adds additional tags to the image

Posted: 2010-09-13T10:06:22-07:00
by glennrp
The extra tags are zTXt chunks.
  • 0 date:create: 2010-09-13T12:59:09-04:00
    1 date:modify: 2010-09-13T12:59:09-04:00
We'll revise png.c to avoid writing them.

Meanwhile, you can use

Code: Select all

pngcrush -rem text file.png file_clean.png
to get rid of them.

Glenn

Re: -strip adds additional tags to the image

Posted: 2010-09-13T10:39:05-07:00
by Drarakel
Or use:
convert 1x1_.png -strip +set date:create +set date:modify 1x1.png

Re: -strip adds additional tags to the image

Posted: 2010-10-06T06:46:49-07:00
by broucaries
Does next version solve this problem ?

Re: -strip adds additional tags to the image

Posted: 2010-10-06T06:55:33-07:00
by magick
In the current version of ImageMagick, the -strip option removes the create and modify date properties.

Re: -strip adds additional tags to the image

Posted: 2010-10-07T02:21:29-07:00
by broucaries
Thank do not see this bug corrected in changelog so ask here.