Browsing articles tagged with " imagemagick"
Jul
19
2011

PHP resize large images with imagemagick

Resize with GD The function imagecopyresampled is used to resize an image with gd library. Here is a quick example : However the above has some problems. If a jpg image for example , is 5000px x 5000px then imagecreatefromjpg would uncompress it and use large memory ( 5000 x 5000 pixels). And then memory exceeded error might be thrown depending on how much memory is available to php. Resize with Imagemagick One possible solution [...]