convert not working...

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ziasumo

convert not working...

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert not working...

Post 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
ziasumo

Re: convert not working...

Post by ziasumo »

YAH.. i AM USING EXEC();
I the folder is in chmod=777
ziasumo

Re: convert not working...

Post by ziasumo »

Thanks..
Its working fine now...
Post Reply