Problem combining CMYK images
Posted: 2012-07-26T14:42:09-07:00
Hello
I have been trying to combine 2 CMYK images and a mask using version 6.7.4 Q16 of ImageMagick (Windows), but the resulting image colors are distorted, almost always a dark gray tone.
Here is how to reproduce the problem:
1-Generate the background:
2-Generate the image:
3-Generate the mask:
4-Combine images:
The expected result would be a yellow canvas containing a green square with a black border around it, however I get a black canvas with a dark gray square and a light gray border.
Could someone tell me if I'm doing something wrong?
I have been trying to combine 2 CMYK images and a mask using version 6.7.4 Q16 of ImageMagick (Windows), but the resulting image colors are distorted, almost always a dark gray tone.
Here is how to reproduce the problem:
1-Generate the background:
Code: Select all
convert -size 400x400 xc:black -colorspace CMYK background.miff
Code: Select all
convert -size 400x400 xc:yellow -fill green -draw "rectangle 100,100 300,300" -colorspace CMYK color.miff
Code: Select all
convert -size 400x400 xc:white -fill white -stroke black -draw "rectangle 100,100 300,300" -type Bilevel mask.miff
Code: Select all
convert background.miff color.miff mask.miff -composite result.jpg
Could someone tell me if I'm doing something wrong?