Page 1 of 1

Losing colors after composite

Posted: 2015-02-10T11:48:11-07:00
by jose.sanpedro
Hi there, im having problems when composite two images. This is my command line:

convert -size 500x400 pxy_255449_249785.PS -thumbnail 500x400 -size 500x400 xc:black +swap -gravity center -composite P_pxy_255449_249785.JPG

The resulting image is the right size, but looks like a negated image.

image 1
https://www.imageshack.us/i/idbIRvijj

thumbnail
https://www.imageshack.us/i/p7HkJCwhj

composite
https://www.imageshack.us/i/eyzB2TFlj

Any help?

Thanks in advance.

Re: Losing colors after composite

Posted: 2015-02-10T11:54:07-07:00
by fmw42
What version of IM and what platform?

The image that downloads is a CMYK .JPEG and not .PS

Is your PS image in CMYK? That could be the issue. If so, you need to convert to sRGB (-colorspace sRGB) or use a profiles to convert to sRGB. The latter would be more accurate. If you are on an older version of IM. See viewtopic.php?f=4&t=21269, as colorspace sRGB and RGB have been swapped.

Re: Losing colors after composite

Posted: 2015-02-12T10:10:54-07:00
by jose.sanpedro
hi fmw42,

The version i am using is ImageMagick-6.8.9-Q16.

I ran identify on the PS image an seems that is CMYK indeed.
output: pxy_255449_249785.PS PS 629x822 629x822+0+0 16-bit ColorSeparation CMYK 2.068MB

Then i ran the convert command with the colorspace sRGB option that you suggest and now its ok!

Thanks!