I found a very helpful post on here about cropping images in a circle. However, when I try to execute the imagemagick script using exec in PHP, I'm getting no results. I've checked to make sure the directories have the correct permissions and such. Is there a step I'm missing?
Any insight would be much appreciated. Here's what my script looks like:
$run = exec('convert -size 200x200 xc:none -fil开发者_开发知识库l daisy.jpg -draw "circle 100,100 100,1" uploads/new.png');
Edit: Imagemagick is installed.
$out=array();
$err = 0;
$run = exec('convert -size 200x200 xc:none -fill daisy.jpg -draw "circle 100,100 100,1" uploads/new.png',$out,$err);
echo implode ("<br>",$out);
print_r($err);
print_r($run);
what would it say?
精彩评论