IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
That is one of the cockups I was talking about earlier; I managed to corrupt the Imagemagick install totally. I have done it on other servers without a problem but something just went wrong last time
What version of Imagick are you using? check your phpinfo.php Perhaps you are using a too old version of Imagick also. see http://pecl.php.net/package/imagick
Is this your own personal server/computer or on a shared host? If the latter, you may have a hard time getting them to upgrade anything.
fmw42 wrote:What version of Imagick are you using? check your phpinfo.php Perhaps you are using a too old version of Imagick also. see http://pecl.php.net/package/imagick
Is this your own personal server/computer or on a shared host? If the latter, you may have a hard time getting them to upgrade anything.
Its a VPS, my friend is owning the server, I will move to a newer and better server in the future. My imagick version is: 3.1.2. How much memory should an imagemagick crop function eat?? If I got memory issues only by testing the function my self, wouldn't there be even more problems when multiple users using the function in a live environment?
Solution:
// pixel cache max size
IMagick::setResourceLimit(imagick::RESOURCETYPE_MEMORY, 64);
// maximum amount of memory map to allocate for the pixel cache
IMagick::setResourceLimit(imagick::RESOURCETYPE_MAP, 64);