resize / sample a very large image - out of memory / ram
Posted: 2011-03-22T06:42:21-07:00
Hello all, I've searched around for a while but haven't yet found anything conclusively answering my question. If you know of a post /site where this has been answered already please do just send me there.
I'm trying to resize very large images (uploaded to a website by professional photographers with crazily high megapixel cameras) but my server can only handle images up to about 10,000x10,000 pixels. Ideally I need to convert upto 20,000x20,000px images into small thumbnails.
I'm running ImageMagick on the command line through PHP ( using exec() ).
I've found that using -sample instead of -resize is much faster, but still seems to use just as much RAM.
Does anyone know of a way to resize images with better memory management in ImageMagick?
I might be able to install extras on my server, but it'll be a bit of a pain so would prefer a clean solution if it was possible.
It's not so relevant to the ImageMagick forum but if it's not going to be possible, does anyone know of any web services that do this with a nice API?
Many thanks for any help you can provide,
James
I'm trying to resize very large images (uploaded to a website by professional photographers with crazily high megapixel cameras) but my server can only handle images up to about 10,000x10,000 pixels. Ideally I need to convert upto 20,000x20,000px images into small thumbnails.
I'm running ImageMagick on the command line through PHP ( using exec() ).
I've found that using -sample instead of -resize is much faster, but still seems to use just as much RAM.
Does anyone know of a way to resize images with better memory management in ImageMagick?
I might be able to install extras on my server, but it'll be a bit of a pain so would prefer a clean solution if it was possible.
It's not so relevant to the ImageMagick forum but if it's not going to be possible, does anyone know of any web services that do this with a nice API?
Many thanks for any help you can provide,
James