Koz
Koz

Reputation: 151

Why does 'montage' seem to take up all my disk space when I try to montage thousands of images?

I tried to 'montage' 15000 small PNG images (about 10kb each) in order to make them all into one big image, but midway through the process I get a warning that I have no disk space left. I have 30gb left in my SSD.

The command I'm running:

montage -mode concatenate -background none -tile "101x" "${X}_*.png" out.png

Why does this happen and how much disk space would I need for such a task?

Upvotes: 0

Views: 184

Answers (1)

RPB1001
RPB1001

Reputation: 11

I had the same problem of running out of disk space with 3 x 9GB temp files produced during the process. I had 100 1800px x 1800px PNG files to tile.

That happened without defining the width of the array. Fixing the width to 10x solved the problem for me, restricting the image to 18000px wide, producing a 10MB output file.

montage -background red -tile 10x -geometry +1+1 *png montage.png

I guess there is a bug somewhere with extremely wide files but I don't know exactly. Try small, then go wider until it fails.

Upvotes: 0

Related Questions