Page 1 of 1
Stacking same-width different-height imgs vertically
Posted: 2011-11-30T14:54:17-07:00
by gje21c
Hi,
I've had a fair try at this, honest.
I'd like to stack a pile of images vertically. They are the same width but different height.
Eg. img1.png 100x20
img2.png 100x30
img3.png 100x40
to produce out.png 100x90
Tried some variants of montage but can't get it yet.
Thanks !
Re: Stacking same-width different-height imgs vertically
Posted: 2011-11-30T19:32:12-07:00
by fmw42
please clarify what you mean by stack? Do you want them side by side (horiz or vertical) or do you want them overlaid on top of each other presuming they have transparency.
if side by side vertically (or horizontally) see -append (or +append) and use -gravity to set how you want them justified relative to each other.
see
http://www.imagemagick.org/Usage/layers/#append
http://www.imagemagick.org/script/comma ... hp#gravity
Re: Stacking same-width different-height imgs vertically
Posted: 2011-12-04T19:47:50-07:00
by gje21c
Fabulous, that works, thanks. Don't know how I didn't spot that in the tutorial pages.
(I did just want the images stacked "on top" of each other. Not overlaying each other. Hmmm, when you say "vertical" or "on top" it's not 100.00% clear what you want, good lesson. Although I did provide the dimension of the required output image.)
So what I needed was ..
convert img1.png img2.png img3.png -append out.png
Thanks, GE.