Page 1 of 1

Out of memory with very large montage

Posted: 2011-01-20T02:45:07-07:00
by Bingo
Hi all !

We are trying to run this command that tiles about 4000 images ( 600x600 pixels each) into a very large image, but it fails.

Code: Select all

montage tiles_*.png -geometry 600x600+0+0 --with-quantum-depth=8 -limit memory 1GB -limit map 2GB -tile 78x large.png
The -debug cache gives me this information (last 2 lines) :

Code: Select all

2011-01-20T10:27:58+01:00 9:50.103 226.153u 6.6.2 Cache Magick[1548]: cache.c/DestroyPixelCache/1601/Cache
  destroy 
Magick: Memory allocation failed `Not enough space' @ fatal/image.c/AcquireImageInfo/291.
Can I change something in the "-limit" settings for this command to complete ?
Computer is running WinXP (32 bits) with 2GB RAM and 2GB pagefile.

Thanks a lot !

Re: Out of memory with very large montage

Posted: 2011-01-20T05:50:22-07:00
by magick
Add -limit as the first thing on your command line. Use -limit area 0.

Re: Out of memory with very large montage

Posted: 2011-01-20T06:18:07-07:00
by Bingo
I'll try this ASAP, thanks !

Re: Out of memory with very large montage

Posted: 2011-01-26T04:25:01-07:00
by Bingo
I'm coming back with the same command.

Adding -limit area 0 worked fine for most of the images, but for one batch that raises a windows error :
Image

Code: Select all

C:\>identify -version
Version: ImageMagick 6.6.7-2 2011-01-19 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
I can post the windows error report if you want, but I'm not sure that it will help ?
Do you have any idea to solve this ?

Thansk a lot !

Re: Out of memory with very large montage

Posted: 2011-02-07T03:18:42-07:00
by Bingo
Isn't there a solution to this problem ? I really need to do this montage.
Thanks a lot !