-strip

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
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

-strip

Post by GreenKoopa »

Running

Code: Select all

convert in.jpg -strip out.png
identify -verbose out.png
reveals Properties:exif:* and Properties:jpeg:* still in the png file. This began between versions 6.8.4-8 and 6.8.5-6.

I first noticed this new behavior when running

Code: Select all

convert in.jpg -strip ... out.png
convert out.png -quality 95 out.jpg
My jpeg sampling-factor used to be set by -quality. Now it is being carried over from in.jpg (through a -strip, through a png file, and through a -quality setting).
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: -strip

Post by glennrp »

The JPEG sampling factors and colorspace properties are preserved in PNG text chunks. It is a side effect of
preserving them when converting a jpeg to another jpeg. We should probably exclude the jpeg properties when
writing a PNG.

This is fixed in the SVN repository revision 12739, and the fix will appear in IM-6.8.6-7
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

Re: -strip

Post by GreenKoopa »

Thank you Glenn.
Post Reply