Wednesday, July 1, 2009

Scaling large images with ImageMagick without running out of memory

I finally managed to scale a very large image (200Mpx) with ImageMagick without hanging the computer running out of memory. This is the command line to do it under Linux:

convert -limit memory 64 -limit map 128 world_small.jpg -scale 10800x5400 word_smaller.jpg

No comments: