memory allocation error even with -limit

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
chanoy

memory allocation error even with -limit

Post by chanoy »

Hi,

I've been searching the forum to find a solution to my problem.

I have a PGM that is 321285x3570 (~1GB in size), and I'm trying to create a thumbnail using the following command:

convert -depth 8 -size 250x250 -thumbnail 125x125 test.pgm test_th.pgm

I get "convert: memory allocation error".

So I try to use the -limit option

convert -limit memory 16 -limit map 16 -depth 8 -size 250x250 -thumbnail 125x125 test.pgm test_th.pgm

Still doesn't work. Anything else I should try?

My computer specs is as follow:
504MB RAM
2.79 GHz Pentium 4
9 GB of free hard drive when I run this test

I'm using ImageMagick 6.2.8 Q16

Thanks for your time,
onyee
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: memory allocation error even with -limit

Post by magick »

Can you post a URL to your image so we can download and try to reproduce the problem.
chanoy

Re: memory allocation error even with -limit

Post by chanoy »

I'm having trouble finding a place where I can upload such a big file for you to access... I'll let you know when it's done.

Thanks,
chanoy

Re: memory allocation error even with -limit

Post by chanoy »

Hi,

My company has a Dropbox tool that I can use to transfer file. The way it works is I need to provide the receiver e-mail address and upload the file onto Dropbox. Then it will send receiver a link to where it can be downloaded. Can you let me know the e-mail address you would like me to send the link to? (i.e. something like devs@im.org or something I would think)

Thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: memory allocation error even with -limit

Post by magick »

Try downloading the Q8 version of ImageMagick. It may work for you. We tried an image at the same dimensions as yours with Q16 and it worked but we have 2GB of memory and 250GB of free disk.
chanoy

Re: memory allocation error even with -limit

Post by chanoy »

Hi,

I realize what the problem is now. There is not enough hard disk. I trying the same thing on a computer with 504MB RAM and 18GB, and it works fine. Apparently, the first thing convert does is create a ~11GB temp file in the IM temp folder for converting that image. Thanks for all of your help.

onyee
Post Reply