Page 1 of 1

Error writing gif: memory allocation failed

Posted: 2012-12-06T07:23:47-07:00
by tlm
Hi,

I've been having a problem creating a gif.

I'm using the latest version of ImageMagick in 32-bit Ubuntu 12.04 as a VMWare guest on a 64-bit Win 7 host.

This is the first time I've tried to use ImageMagick.

I downloaded a series of pictures (one per hour for 24 hours) from the Healy ice breaker. The pictures can be viewed at,

http://icefloe.net/Aloftcon_Photos/

Although I pulled them off an old location, using:

Code: Select all

http://mgds.ldeo.columbia.edu/healy/reports/aloftcon/2011/20110928-${hour}01.jpeg
With hour ranging from 01 to 23.

I've checked all of the photos and they seem fine.

Then I try to run,

Code: Select all

convert -delay 100 -loop 0 *.jpeg healy-20110928-day-animation.gif
My system spends a long time trying to build the gif, then spits out the following errors:
convert: memory allocation failed `healy-20110928-day-animation.gif' @ error/quantize.c/QuantizeImage/2656.
convert: memory allocation failed `healy-20110928-day-animation.gif' @ error/gif.c/WriteGIFImage/1621.

Re: Error writing gif: memory allocation failed

Posted: 2012-12-06T11:09:58-07:00
by fmw42
try

convert -delay 100 *.jpeg -loop 0 healy-20110928-day-animation.gif

but perhaps you are running out of RAM

I am not sure this will help, but see http://www.imagemagick.org/Usage/files/#massive


Best suggestion is to cut down the number of input images and see if it works with just 3 or 4.

Re: Error writing gif: memory allocation failed

Posted: 2012-12-06T12:10:12-07:00
by tlm
Nice one, fmw42. Allocated more memory to my virtual machine: problem solved.