Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,111 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,727 people online right now. Registration is fast and FREE... Join Now!




ImageMagick or PHP permissions?

 
Reply to this topicStart new topic

ImageMagick or PHP permissions?, imagemagick conversion...

Xmod
28 Feb, 2007 - 01:59 PM
Post #1

New D.I.C Head
*

Joined: 19 Jan, 2007
Posts: 35


My Contributions
Im using this code in php to modifify and image and convert it into jpg
CODE

$NewImageName = $t."_offer_".$value;
copy($_FILES[images][tmp_name][$key], "re_images/".$NewImageName);
$MyImages[] = $NewImageName;
//Below is the convertion of images if servers uses IMAGEMAGICK
exec("convert re_images/$NewImageName -resize 460x400 -quality 65 -compress JPEG re_images/$NewImageName");


The same exe(code here); i used in the comand line ssh and it works for some reason it doesn't want to work on the code in php, Im using imagemagick 6.3.2 thanks for any help thank.
User is offlineProfile CardPM
+Quote Post

Spider
RE: ImageMagick Or PHP Permissions?
1 Mar, 2007 - 10:11 AM
Post #2

Arachnid
****

Joined: 10 Jul, 2002
Posts: 769


My Contributions
Are you getting any output at all?

Can you turn on error reporting and see what is actually happening?

My first inclination is that you might have folder permission problems which don't apply when you're using the command line.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 09:39PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month