I run a small VPS for one of our sites and am using imagemagick to resize images with imagefield and imagecache.
If someone uploads a large image then imagemagick resizes it to the max dimensions given by imagefield. However, if it is a seriously large image this puts strain on the server, in fact with the limited RAM and /tmp on my VPS imagemagick has crashed my server doing this.
Imagemagick itself is outside PHP so it doesn't get limited by the php.ini memory limit. The solution seems to be using something like "-limit memory 64 -limit map 128" with the imagemagick convert command. And maybe use "nice convert..." too. But I don't know how to do that as the command is happening through the imageAPI module.
Is there a way I can set the maximum memory usage for imagemagick? Where is the "convert" command being called in the module, that I might add these switches to it?