-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.

-strip

Postby GreenKoopa » 2013-07-21T15:47:57+00:00

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
GreenKoopa
 
Posts: 452
Joined: 2010-11-04T17:24:08+00:00

Re: -strip

Postby glennrp » 2013-07-21T16:52:03+00:00

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
glennrp
 
Posts: 844
Joined: 2006-04-01T08:16:32+00:00
Location: Maryland 39.26.30N 76.16.01W

Re: -strip

Postby GreenKoopa » 2013-07-25T22:59:54+00:00

Thank you Glenn.
User avatar
GreenKoopa
 
Posts: 452
Joined: 2010-11-04T17:24:08+00:00


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests