[PHP] ImageMagick and Convert In PHP
I have exactly the same problem! Anyone who can help? /nicke Rick [EMAIL PROTECTED] wrote in message news:003701c1bb50$bda0e2e0$[EMAIL PROTECTED]; Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ImageMagick and Convert In PHP
Hi, I had problem with ImageMagick's identify. When trying to use with a shell command in PHP big problems! Why. Trace of identify showed that it wants to create a temporary file in the directory where the scripts is but the apache/php runs under nobody:nobody but the web directories are owned by andy:web . so identify fails. Maybe my problem and yours have something in commong. try : strace your_command_here and see the output. Best regards, Andrey Hristov - Original Message - From: Nicke [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 01, 2002 12:06 PM Subject: [PHP] ImageMagick and Convert In PHP I have exactly the same problem! Anyone who can help? /nicke Rick [EMAIL PROTECTED] wrote in message news:003701c1bb50$bda0e2e0$[EMAIL PROTECTED]; Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ImageMagick and Convert In Php
Hello All, Ok , I am about to loose my mind... this list is my last option i think :) this is what i have tried : system(convert -pen black -draw 'text 120,60 YourText Here' imageA.jpg imageB.jpg); The above does not work , the most i can get it imageA.jpg Becomes imageB.jpg but the text does not get drawn I striped the slashes, this does not work either, i su - to what my webserver runs on to see if i can run the system command via console, it works just fine , so i tried : $a = escapeshellcmd('-pen black -draw'); $b = escapeshellarg('text 120,20 YourTextHere); $c = escapeshellcmd(test.jpg doggy.jpg); system(convert $a $b $c); Same as the above, imageA becomes imageB and thats it. Permissions for testing are -rwxrwxrwx a basic test with system(convert -scale 500x600 imageA.jpg imageB.jpg); = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got Php Might have some issues so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson