Image Conversion loosing colors - need help!
Image Conversion loosing colors - need help!
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..
- 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!
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
for cmyk need to read it in as RGB, so -colorspace is before input and other options are after input
Re: Image Conversion loosing colors - need help!
Hi, Thx!
But the issue still exists.. no improvement in colors. Wish I could upload the converted images!
But the issue still exists.. no improvement in colors. Wish I could upload the converted images!
- 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!
try -strip to remove profiles or add your own profiles with -profile
(just guessing here now)
(just guessing here now)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Image Conversion loosing colors - need help!
Maybe the JPEG image is missing the color profile it needs!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/