Center with Montage

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
seya
Posts: 2
Joined: 2015-06-22T12:27:58-07:00
Authentication code: 6789

Center with Montage

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Center with Montage

Post 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/
seya
Posts: 2
Joined: 2015-06-22T12:27:58-07:00
Authentication code: 6789

Re: Center with Montage

Post 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 :)
Post Reply