开发者

Batch montage of images with paging

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜