petenaylor Posted October 2, 2011 Share Posted October 2, 2011 Hi all I need to re-write the below code so that it doesn't use the exec function: $scale = '74x74'; $go = WEB_UPLOAD.'/test/images/'.$image; $stop = WEB_UPLOAD.'/test/images/'.$image_small; exec ("/usr/bin/convert $go -resize $scale\> -quality 100 $stop") or die("Error creating 74 x 74 image."); Many thanks for your help. Pete Quote Link to comment https://forums.phpfreaks.com/topic/248287-imagemagick-help/ Share on other sites More sharing options...
trq Posted October 3, 2011 Share Posted October 3, 2011 So, what is your question? Quote Link to comment https://forums.phpfreaks.com/topic/248287-imagemagick-help/#findComment-1275128 Share on other sites More sharing options...
petenaylor Posted October 3, 2011 Author Share Posted October 3, 2011 Hi there I need to know how I can write the php commands to scale and copy the image as shown in the command line above? I know it can be done with php objects but I need some guidance. Many thanks Pete Quote Link to comment https://forums.phpfreaks.com/topic/248287-imagemagick-help/#findComment-1275177 Share on other sites More sharing options...
trq Posted October 3, 2011 Share Posted October 3, 2011 http://php.net/manual/en/book.imagick.php Quote Link to comment https://forums.phpfreaks.com/topic/248287-imagemagick-help/#findComment-1275188 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.