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.