Problems creating a mask
Posted: 2007-09-17T11:23:19-07:00
First let me start by saying thank you so much for ImageMagick and the examples. It's a great utility, and I appreciate the time everyone has put into it.
I'm having trouble creating a mask. I'm using PHP. I've tried two different ways:
Neither difference.png nor negate.png are being created. This method of calling to the command line works in other cases (animating, tiling), so I don't think it has to do with using the exec. I really have no idea what is going on and why neither of these are at least executing. I've also tried popen instead of exec, and gif files instead of png files.
ETA: Okay, the second one is now working, but I'm still confused as to why the first one is not, as I copied it from the examples page. The error code returned is 127.
I'm having trouble creating a mask. I'm using PHP. I've tried two different ways:
Code: Select all
$mask = 'usr/bin/convert cyclops.png \( +clone -fx \'p{0,0}\' \) -compose Difference -composite -modulate 100,0 +matte difference.png';
exec($mask);
$negate = 'convert cyclops.png -colorspace Gray -negate negate.png';
exec($negate);
ETA: Okay, the second one is now working, but I'm still confused as to why the first one is not, as I copied it from the examples page. The error code returned is 127.