Page 1 of 1

need help with montage

Posted: 2014-03-26T02:28:48-07:00
by effa
Hello!
I'm new to imagemagick and need some help.
I have 3 images and 1 file. I need to arrange them exacltly as on the example picture below:
1st picture is in the top left corner
2nd in the middle for the whole width.
3rd just in the middle.

Also, 1 file has name that I would like to insert in the result picture near 1st picture (just letters from the file name).

I will put all these in the script for automatical processing.

example picture: http://postimg.org/image/4wcf5l0gl

Re: need help with montage

Posted: 2014-03-26T07:36:59-07:00
by snibgo
There are many ways to do this, such as this Windows BAT script:

Code: Select all

convert -size 150x150 gradient:red-green pic1.png
convert -size 600x600 gradient:green-blue pic2.png
convert -size 150x150 gradient:blue-green pic3.png

convert ^
  pic1.png -set option:CAPT "  Name is %%f" label:%%[CAPT] +append ^
  -size 20x20 xc: ^
  pic2.png ^
  -size 20x20 xc: ^
  -append ^
  pic3.png ^
  -gravity South ^
  -append ^
  p.png
Adjust for other script languages.
See:
http://www.imagemagick.org/script/comma ... ptions.php
http://www.imagemagick.org/Usage/text/#user_escapes
http://www.imagemagick.org/script/escape.php