32bits jpg to 24bits jpg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mmotta19
Posts: 3
Joined: 2015-04-24T07:30:23-07:00
Authentication code: 6789

32bits jpg to 24bits jpg

Post by mmotta19 »

I'm trying to convert a 32bits Jpg image to 24bits jpg image, so I put this command:
convert Image.jpg -colorspace rgb image_rgb.jpg

It works, but the image looks diferent:

32 Bits
https://drive.google.com/file/d/0BzDALy ... sp=sharing

Converted 24 Bits
https://drive.google.com/file/d/0BzDALy ... sp=sharing

Is there other way??

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 32bits jpg to 24bits jpg

Post by snibgo »

The input is CMYK. You probably want to create an sRGB (not RGB) output.

In addition, the input has an embedded CMYK profile. A more accurate conversion would be:

Code: Select all

convert 32.jpg -profile sRGB.icc 24.jpg
... assuming sRGB.icc is in your current directory.
snibgo's IM pages: im.snibgo.com
mmotta19
Posts: 3
Joined: 2015-04-24T07:30:23-07:00
Authentication code: 6789

Re: 32bits jpg to 24bits jpg

Post by mmotta19 »

OK.
It works very fine..

Thank you very much!!
Post Reply