trying to montage >25'000 files

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
kiener

trying to montage >25'000 files

Post by kiener »

Hi,

I'm trying to montage >25'000 files into a final image with a final resolution of 55000x30000 pix-els. Each of the tiles has a resolution of 256 pixels for width and height.
The >25'000 image tiles are stored in a database (as a given requirement). Now I have to montage it together.

montage.exe always gets a memory allocation error.
convert.exe still runs after one days without any result and only uses about 2% of my CPU. I think it's so slow, because of the memory-swapping.
Does anyone know a faster solution to montage so many files together into one image?

Thanks in advance
Kiener
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: trying to montage >25'000 files

Post by fmw42 »

you probaby don't have enough memory to hold all the input images and the output at the same time so it is likely thrashing to disk.

see http://www.imagemagick.org/script/comma ... .php#limit and http://www.imagemagick.org/Usage/files/#massive

You could try as an alternate, writing a script to append the images row by row and then append all the row images, but that still may be memory limited and suffer the same thrashing to disk for the final append. see http://www.imagemagick.org/script/comma ... php#append
Last edited by fmw42 on 2009-12-08T18:01:23-07:00, edited 1 time in total.
zoran1973

Re: trying to montage >25'000 files

Post by zoran1973 »

my bigest project has 720 images but final images has 20'000x21'000 pixel
I use method to append the images row by row and then append all the row images
Post Reply