Page 1 of 1

Center with Montage

Posted: 2015-06-22T12:38:27-07:00
by seya
Hi everyone,

I'm posting my imagemagick problem after a long days of research and many testing...
Could not succeed in making what I want... And really I need your help... snif.... :oops:

So here's what I want to do with a couple of images: I want to create an image with 2 lines of 3 images and a line with one image that is centered in the bottom of all (want to do it with just one command Line in... guess what... wait for it.... Windows :p)

Image


Here's the command line I'm using... (Yeah I know I'm a newbie.... :( but trying to make something cool ;) )

Code: Select all

montage -background black ( Image1 Image2 Image3 Image4 Image5 Image6 -resize 330x220+0+0 ) ( logo-small.png -gravity south ) -tile 3x -geometry +0+0 -border 5 -bordercolor black planchetest1024x720.png
Can someone help me out with this ?

Thanks in advance guys

Re: Center with Montage

Posted: 2015-06-22T13:15:11-07:00
by fmw42
I do not believe that you can use parenthesis processing in montage, only convert. But the following seems to work for me as a test. Use null: images as place holders. Use -geometry to do the resize. Replace each of my rose: test images with your real 7 images and your desired resize. But run these commands and see if they work the way you want.

Windows syntax ( I believe ):

Code: Select all

montage rose: rose: rose: rose: rose: rose: null: rose: null: ^
-geometry 200x200+0+0 -tile 3x -border 5 -bordercolor red ^
-background black rose_result.png
Alternately use convert with append:

Code: Select all

convert ^
( rose: rose: rose: -resize 200x200 -bordercolor red -border 5 +append ) ^
( rose: rose: rose: -resize 200x200 -bordercolor red -border 5 +append ) ^
-append ^
rose: -bordercolor red -border 5 -gravity south -background black -append ^
rose_result.png
If either of these two methods does not work to make what you want, then upload your images to some free hosting service such as dropbox.com and put the links here. Then explain what you need and why it is not working and I or someone else can probably fix it.

For new users of IM see:

http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/

Re: Center with Montage

Posted: 2015-06-26T06:47:42-07:00
by seya
Hi fmw42,

Thank you for the answer ! It's what I wanted to do :)

Will try to improve my skills with it. I understand much better the use of append now

Now I will try to put a background image to it :)

Thanks again :)