Hi there,

I am trying to convert images on an ftp server using ImageMagick's convert feature. I can get convert to see the file on the ftp server and convert it but I can't get it to save the file back to the ftp server.

Here's what I am trying to use,

exec("/usr/local/bin/convert $ftp_address/$filename.tif -resize 500x500 $ftp_address/$filename.jpg");

If I leave out the ftp address then I can create the jpg in the folder on the webserver (where the php file is) but not back on the ftp server.

Any thoughts?

Steve

    Write a Reply...