Page 1 of 1

resize big image (12000 px)

Posted: 2007-01-23T05:39:59-07:00
by gabriel
I have a JPG image: 30M, 1200x10000 px. If I try to resize to 200x200 px the convert will crash. I tested on suse and fedora core 6. On freebsd it works perfect. Also I have seen the convert make a file in /tmp of 999M.
Any idea?

Posted: 2007-01-23T06:14:22-07:00
by magick
Add a size hint when resizing JPG images, for example:
  • convert -size 200x200 huge.jpg -resize 200x200 small.jpg

Posted: 2007-01-23T06:41:01-07:00
by gabriel
Yes , it works but only for JPG format. If I try to resize a huge BMP image the convert crash.

Posted: 2007-01-23T11:26:10-07:00
by magick
You need to set MAGICK_TMPDIR to a path with lots of free space such as
  • export MAGICK_TMPDIR=/data
    convert huge.bmp -resize 200x200 huge.bmp
You can also use the light-weight stream program to convert the image to a raw format and then convert the smaller more managable raw format to your desired format.