convert function stopped working on new server
Posted: 2011-03-24T01:23:16-07:00
Hi,
I'm using the following function to convert my image to a smaller one:
This code works since more than year on my current my and not on the new one.
Both systems are ubuntu 10.04 and even the convert function is from the same version. On the new system I'm able to use the convert function for simple tasks.
Maybe there is an problem with the multi-line? A workaround would be to split the code into two functions but that is not really nice...
Thanks for helping.
I'm using the following function to convert my image to a smaller one:
Code: Select all
convert /home/user/domains/remote.com/public_html/img/www.image.jpg -resize 120x\> -size 120x90 xc:white +swap -gravity north -composite -quality 90 /home/user/domains/remote.com/public_html/img/www.image_thumb.jpg
Both systems are ubuntu 10.04 and even the convert function is from the same version. On the new system I'm able to use the convert function for simple tasks.
Maybe there is an problem with the multi-line? A workaround would be to split the code into two functions but that is not really nice...
Thanks for helping.