Page 1 of 1

convert not working...

Posted: 2010-03-17T04:14:35-07:00
by ziasumo
I encounter a very strange problem
When I try to run that command through my PHP code.
It does not run and does not copy to destination path .

but whne I try to run it through command prompt directly on server the same command runs well and copy source image to destination path....

convert /usr/dana/data/www.mydomain.com/includes/classes/workd ... 822359.jpg /usr/dana/data/www.mydomain.com/docs/upload/canvas/try.jpg

Any one can suggest something...
I dont know whats wrong with it...

Thanks in anticipation

Re: convert not working...

Posted: 2010-03-17T05:44:55-07:00
by Bonzo
Has ImageMagick ever worked ?
Is the destination folder CHMOD to 777?
Are you using exec( ) ?

Out of interest you should not need the full path from root; try something like:

Code: Select all

convert includes/classes/workdir/canvas_1268822359.jpg docs/upload/canvas/try.jpg

Re: convert not working...

Posted: 2010-03-17T05:47:09-07:00
by ziasumo
YAH.. i AM USING EXEC();
I the folder is in chmod=777

Re: convert not working...

Posted: 2010-03-17T10:59:10-07:00
by ziasumo
Thanks..
Its working fine now...