Page 1 of 1

Fred's cylinderize problem from php

Posted: 2010-04-23T03:06:58-07:00
by indusglyphs
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)

Re: Fred's cylinderize problem from php

Posted: 2010-04-23T08:29:58-07:00
by fmw42
what version of IM are you using and on what platform?

Re: Fred's cylinderize problem from php

Posted: 2010-04-23T08:40:38-07:00
by fmw42
edit the script to add the full path to convert, identify and any other IM command in the script.