Page 1 of 1

Posted: 2006-10-22T00:50:41-07:00
by Bonzo
Either of these will work:

Code: Select all

exec('usr/local/bin/convert 3.jpg -crop 20x20+4+4 test/2.jpg'); 

exec("$convert 3.jpg -crop 20x20+4+4 test/2.jpg"); 

Posted: 2006-10-22T09:17:57-07:00
by Bonzo
Couple of other things I would try:

Code: Select all

<?php 

$convert = "/usr/local/bin/convert"; 

$new_image = "test/2.jpg";

exec("$convert 3.jpg -crop 20x20+4+4 $new_image"); 

?> 
Try saving to the same folder to see if that works using 2.jpg rather than test/2.jpg

You can use -debug in the code and see if that outputs any messages but for some reason that never works for me.