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.
Losing colors after composite
-
- Posts: 14
- Joined: 2015-02-10T11:30:35-07:00
- Authentication code: 6789
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Losing colors after composite
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.
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.
-
- Posts: 14
- Joined: 2015-02-10T11:30:35-07:00
- Authentication code: 6789
Re: Losing colors after composite
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!
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!