Page 1 of 1

Montage after copping?

Posted: 2015-08-07T04:33:08-07:00
by mab
Hello,

I am trying to create a large contact sheet from 3000+ images. For this, I use

montage -border 1 -bordercolor white -background black -geometry +0+0 @imglist.txt contact.png

Now I need to crop a fixed amount of pixels from each image before adding it to the contact sheet.

I found the -shave option which would do exactly that, but unfortunately montage seems not to support it.

I tried using the -crop 200x200 option, but that would produce a very weird contact sheet with the cropped image first, followed by the part that was cropped, so essentially distributing a single original image over several contact sheet thumbnails...

Any suggestions how to achieve a 'crop then montage' without creating cropped copies of all images?

Thanks!

PS: This is running ImageMagick 6.9.1-3 Q16 x86_64 under cygwin_x64 on Win7

Re: Montage after copping?

Posted: 2015-08-07T09:17:38-07:00
by fmw42
You will need to use mogrify on the folder holding the images to do the shave, saving to another existing empty folder. Then do your montage. See http://www.imagemagick.org/Usage/basics/#mogrify

Re: Montage after copping?

Posted: 2015-08-07T11:13:54-07:00
by snibgo
mab wrote:I tried using the -crop 200x200 option, but that would produce a very weird contact sheet with the cropped image first, followed by the part that was cropped
You need "-crop 200x200+0+0".