need help 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
effa
Posts: 1
Joined: 2014-03-26T02:12:35-07:00
Authentication code: 6789

need help with montage

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: need help with montage

Post 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
snibgo's IM pages: im.snibgo.com
Post Reply