Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/public/blog/wp-includes/plugin.php on line 601

Create a thumbnail or resize an image with Imagemagick in PHP


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

No comments yet.

Write a comment: