Create a thumbnail or resize an image with Imagemagick in PHP28/11/2010
This is the most elegant way I could find to create an thumbnail for an image I want to resize with PHP and Imagemagick. The function will return a filename.
To install imagemagick using Ubuntu, just run
sudo aptitude install php5-imagick