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?