Image Conversion loosing colors - need help!

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
image

Image Conversion loosing colors - need help!

Post by image »

I'm converting a JPG image using something like: "-thumbnail 105x147! -quality 75 " + "input.jpg" + " -colorspace RGB " + "output.jpg" in my .NET code (calls convert.exe). However, upon conversion, the image losses color significantly. Upon conversion the output image gets displayed on IE. On contrary, not mentioning the "-colorspace RGB" as above, the image retains its orginal color and quality, but does not show up on IE. My initial idea (may be wrong) is that the original/input image is of CMYK color model..
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Conversion loosing colors - need help!

Post by fmw42 »

convert -colorspace RGB input.jpg -thumbnail 105x147! -quality 75 output.jpg

for cmyk need to read it in as RGB, so -colorspace is before input and other options are after input
image

Re: Image Conversion loosing colors - need help!

Post by image »

Hi, Thx!
But the issue still exists.. no improvement in colors. Wish I could upload the converted images!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Conversion loosing colors - need help!

Post by fmw42 »

try -strip to remove profiles or add your own profiles with -profile

(just guessing here now)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image Conversion loosing colors - need help!

Post by anthony »

Maybe the JPEG image is missing the color profile it needs!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply