Question

I have hundreds of images (png), sorted by name. They all have different sizes, but the same print resolution is to be used.

I want to montage them in column, only one per row, possibly centered, and so that when the total height of the montage reaches an A4 paper height (~30cm) it starts again on another page..

I tried to do it with the montage command of the imageMagick suite.. but I can't make it page based on height and not the nubmer of images (because images are of different sizes, pages might contain a different number of images..)

Any idea?

Was it helpful?

Solution

when the total height of the montage reaches an A4 paper height (~30cm) it starts again on another page

I assume that that "another page" actually means "another image".

You need to compute the height (physical) of each image, and do some basic math. This seems a task well suited to PerlMagick . If you are not confortable with Perl, you might try another ImageMagick interface in your prefered language.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top