Page 1 of 1

Montage, align images bottom

Posted: 2009-03-24T07:42:46-07:00
by tnek

Code: Select all

montage 1.jpg 2.jpg 3.jpg 4.jpg -shadow -geometry '+1+1' -background Khaki -tile 3x montage.jpg 
Gives me a montage where the images are centered vertically:
Image

I would like to align them at the bottom of their rows. Is that possible? And if so, how is it done?

Best regards,
Kent

Re: Montage, align images bottom

Posted: 2009-03-24T11:08:52-07:00
by fmw42
tnek wrote:

Code: Select all

montage 1.jpg 2.jpg 3.jpg 4.jpg -shadow -geometry '+1+1' -background Khaki -tile 3x montage.jpg 
Gives me a montage where the images are centered vertically:
Image

I would like to align them at the bottom of their rows. Is that possible? And if so, how is it done?

Best regards,
Kent
I don't know if this will work, but try adding -gravity south before or after -geometry. If that does not work, then you may have to use multiple appends or convert -composite.

see ww.imagemagick.org/Usage/montage/ for many examples of montage and append

Re: Montage, align images bottom

Posted: 2009-03-24T16:27:46-07:00
by tnek
-gravity south

did it! (It worked both before and efter -geometry.)

Thank you!

I've already read the link though and I couldn't find anything about aligning them at the bottom. I'm pretty sure I didn't miss it as I studied the page for quite a while, but it's possible.

Re: Montage, align images bottom

Posted: 2009-03-24T17:07:52-07:00
by fmw42
tnek wrote:-gravity south

did it! (It worked both before and efter -geometry.)

Thank you!

I've already read the link though and I couldn't find anything about aligning them at the bottom. I'm pretty sure I didn't miss it as I studied the page for quite a while, but it's possible.

I did not see it either, but thought it was worth a try.

Re: Montage, align images bottom

Posted: 2009-03-25T00:14:00-07:00
by tnek
If it was a Wiki page I would have contributed this as I think quite a few people will find it useful, but it isn't. Anyway, my problem is solved and hopefully people can find this thread through a search engine if they stumble over the same problem.

Thanks again fmw42! :-)

Re: Montage, align images bottom

Posted: 2009-03-25T11:04:55-07:00
by fmw42
tnek wrote:If it was a Wiki page I would have contributed this as I think quite a few people will find it useful, but it isn't. Anyway, my problem is solved and hopefully people can find this thread through a search engine if they stumble over the same problem.

Thanks again fmw42! :-)

I sent a message to Anthony and he has updated the montage page documentation to show the -gravity option. If not available now, it likely will be in the next release.