Hi,
I have successfully run "cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png" from my Fedora 10 command line, but once i tried to run the same using php i.e. exec('cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png') it gives me this error
--- FILE test.jpg NOT READABLE OR HAS ZERO SIZE Rajesh---
Could someone please help me?
Warm regards
Rajesh
Please NOTE : Thanks to fmw42 who have suggested a solution, but that didn't work for me
1) provide the full path to cylinderize in your exec command and possibly full paths to images (this may or may not be necessary)
2) edit the cylinderize script to provide the full path to convert (PHP does not always recognize the system PATH)
3) edit the cylinderize script to change dir="." to dir="/tmp" (possibly a permission issus)
Fred's cylinderize problem from php
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Fred's cylinderize problem from php
what version of IM are you using and on what platform?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Fred's cylinderize problem from php
edit the script to add the full path to convert, identify and any other IM command in the script.