Error writing gif: memory allocation failed

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tlm
Posts: 2
Joined: 2012-12-06T07:00:33-07:00
Authentication code: 6789

Error writing gif: memory allocation failed

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error writing gif: memory allocation failed

Post 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.
tlm
Posts: 2
Joined: 2012-12-06T07:00:33-07:00
Authentication code: 6789

Re: Error writing gif: memory allocation failed

Post by tlm »

Nice one, fmw42. Allocated more memory to my virtual machine: problem solved.
Post Reply