utbl wrote:Code: Select all
montage image1.jpg image2.jpg image3.jpg image4.jpg image5.jpg image6.jpg -geometry +10+10 -resize 720x480 output.png
but I am not sure how to proceed further.
There are several ways to approach this sort of project. Often the best way depends on the version of ImageMagick you're using. Sometimes the OS you're working on makes a difference, too. To make an arrangement like your example I'd probably use "convert" instead of "montage". A simple command on a Windows command line with a recent version 6 of IM and might look like this...
Code: Select all
convert -bordercolor none -background none -gravity center ^
img1.jpg -border 5x5 ^
( img2.jpg img3.jpg img4.jpg -border 5x5 +append ) ^
( img5.jpg img6.jpg img7.jpg -border 5x5 +append ) ^
-append -border 5x5 -resize 720x480 output.png
That makes three rows starting with the first image as the top row, then the next three, then the last three, then it appends those three rows into a column. Everything is spaced apart by 5 pixel transparent borders and placed on a transparent background, and the final output is surrounded by another 5 pixel border then sized to 720x480.
If this needs to be done for a whole directory of images, or automated, or take into account odd sizes or different arrangements every time, other methods might turn out to be a better approach. Give us a few more details, and let us know which version of IM you're using and what platform your working on.