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 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? 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 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 Link to comment https://forums.phpfreaks.com/topic/248287-imagemagick-help/#findComment-1275188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.