Montage after copping?

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
mab
Posts: 1
Joined: 2015-08-07T04:27:56-07:00
Authentication code: 1151

Montage after copping?

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Montage after copping?

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage after copping?

Post 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".
snibgo's IM pages: im.snibgo.com
Post Reply