jpg negated with -thumbnail option

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
jsasitorn
Posts: 2
Joined: 2011-01-27T21:51:56-07:00
Authentication code: 8675308

jpg negated with -thumbnail option

Post by jsasitorn »

When using the -thumbnail option in imagemagick 6.3.7 11/17/10, I got an image that became negated (negative b&w).
Image

Code: Select all

convert -thumbnail 400x350 -format jpg image.jpg  result.jpg
Produces:

Image

A normal resize performs as expected.

Code: Select all

convert -resize 400x350 -format jpg image.jpg  normal.jpg
Image

Is this a bug? Or am I not using this correctly?

Thanks,
James
jsasitorn
Posts: 2
Joined: 2011-01-27T21:51:56-07:00
Authentication code: 8675308

Re: jpg negated with -thumbnail option

Post by jsasitorn »

Never mind.. Figured it out. Its from the -strip option (-thumbnail does an implicit call to this). The -strip was removing the color profile, which is CYMK..

And I guess CYMK simply stripped of the profile is a negated RGB.
Post Reply