[solved] -strip adds additional tags to the image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

[solved] -strip adds additional tags to the image

Post 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
Last edited by broucaries on 2010-10-07T02:21:49-07:00, edited 1 time in total.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: -strip adds additional tags to the image

Post 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
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: -strip adds additional tags to the image

Post by Drarakel »

Or use:
convert 1x1_.png -strip +set date:create +set date:modify 1x1.png
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: -strip adds additional tags to the image

Post by broucaries »

Does next version solve this problem ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -strip adds additional tags to the image

Post by magick »

In the current version of ImageMagick, the -strip option removes the create and modify date properties.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: -strip adds additional tags to the image

Post by broucaries »

Thank do not see this bug corrected in changelog so ask here.
Post Reply