I used to use a combination of ImageMagick and the PHP IMagick functions, but then I decided to rewrite the script in only ImageMagick commands (called by PHP using exec) as I expect this will be more efficient.
The problem is that the colors disappear from the text when it is composited onto the canvas and they end up black!
See here:
Code: Select all
exec('convert -trim -background transparent -colorspace CMYK -font '.$spinetitlefont.' -size 930x'.ceil($spinewidth*0.75).' -fill "rgb(213,193,130)" caption:"'.$c_title.'" -rotate 90 output/'.$i9.'-working.png');
list($width, $height, $type, $attr)=getimagesize('output/'.$i9.'-working.png'); $w=2700-($width/2);
exec('composite -compose Over -geometry +'.$w.'+994 output/'.$i9.'-working.png output/'.$i9.'-cover.miff output/'.$i9.'-cover.miff');
The same happens whether or not I set "-colorspace CMYK" for the text.
Please help!