

Memory usage can be limited by using : $img->setResourceLimit( Imagick::RESOURCETYPE_MEMORY, 5 ) This should work where gd fails due to memory limitations. Resize using imagemagick, it is memory efficient, GD fails since images are uncompressed.Įcho 'Caught exception: ', $e->getMessage(), "n"
#Resize php how to#
Here is a quick example of how to resize an image using imagemagick library. Imagemagick can resize large images by using disk space instead of RAM memory. I have tried using js and jquery solutions from different tutorials but none of them seem to work.
To overcome the memory problem, imagemagick is an excellent solution. How to make textarea auto resize in wordpress php Ask Question Asked today Modified today Viewed 3 times 0 I want my