Page 1 of 1
Newbie: Centering Image in montage on command line
Posted: 2011-08-12T08:47:11-07:00
by jacktripper1000
Hi, I am new to using ImageMagick command line interface. I have a image and I want to add a smaller, second image as footer of the first one centered. However when I do that, I am getting it left aligned only.
This is the command I am running.
Code: Select all
montage main.jpg footer.gif -gravity center -tile 1x2 out.jpg
I am not sure what I am missing here.
Please help.
Jack
Re: Newbie: Centering Image in montage on command line
Posted: 2011-08-12T09:16:01-07:00
by Bonzo
Any particular reason you want to use montage?
This should do what you want:
Code: Select all
convert main.jpg footer.gif -gravity south -composite out.jpg
Re: Newbie: Centering Image in montage on command line
Posted: 2011-08-12T09:27:13-07:00
by fmw42
or
convert main.jpg footer.gif -background somecolor -gravity south -append out.jpg
the -background is only needed it the widths of the two images differ.
see
http://www.imagemagick.org/script/comma ... php#append and
http://www.imagemagick.org/Usage/layers/#append
Re: Newbie: Centering Image in montage on command line
Posted: 2011-08-16T01:45:20-07:00
by jacktripper1000
Magical!
Works like a charm.
Thanks a lot.
-Jack