Montage Fit to a dimension

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
cuehello
Posts: 1
Joined: 2015-03-21T04:10:37-07:00
Authentication code: 6789

Montage Fit to a dimension

Post by cuehello »

Hello!

This looks like a nice place would very helpful people figured I will ask something that's been bugging me and could not get it to work.
I hope you fellas can help me out with this one

What I want to achieve is detect which images are in portrait or smaller than the 400x400 and fill them in the 400x400 square.
So basically I want a fit to option to 400x400.


At the moment this what i'm running:
I'm on a Mac with imagemagick installed.

Code: Select all

montage -gravity northwest  -geometry 400x400+10+10 *.jpg *.jpeg *.png _moodboard.jpg
and here is the actual result:
Image
I don't know how to make this with the montage but I can make something like this with convert and cropping the image at 400x400.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Montage Fit to a dimension

Post by Bonzo »

I do not use montage and would probably use convert with a script.

What does this give you:

Code: Select all

montage -background white -gravity center -extent 400x400 *.jpg *.jpeg *.png _moodboard.jpg
Post Reply