Page 1 of 1
Image Conversion loosing colors - need help!
Posted: 2009-09-03T14:42:38-07:00
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..
Re: Image Conversion loosing colors - need help!
Posted: 2009-09-03T16:18:12-07:00
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
Re: Image Conversion loosing colors - need help!
Posted: 2009-09-03T16:47:49-07:00
by image
Hi, Thx!
But the issue still exists.. no improvement in colors. Wish I could upload the converted images!
Re: Image Conversion loosing colors - need help!
Posted: 2009-09-03T18:05:16-07:00
by fmw42
try -strip to remove profiles or add your own profiles with -profile
(just guessing here now)
Re: Image Conversion loosing colors - need help!
Posted: 2009-09-03T18:56:23-07:00
by anthony
Maybe the JPEG image is missing the color profile it needs!