Copyright © Fred Weinhaus My scripts are available free of charge for non-commercial (non-profit) use, ONLY. For use of my scripts in commercial (for-profit) environments or non-free applications, please contact me (Fred Weinhaus) for licensing arrangements. My email address is fmw at alink dot net. If you: 1) redistribute, 2) incorporate any of these scripts into other free applications or 3) reprogram them in another scripting language, then you must contact me for permission, especially if the result might be used in a commercial or for-profit environment. Usage, whether stated or not in the script, is restricted to the above licensing arrangements. It is also subject, in a subordinate manner, to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php Please read the Pointers For Use on my home page to properly install and customize my scripts. |
Collages three images in a diagonal orientation. |
last modified: December 15, 2018
USAGE: diagcollage [-s size] [-b bordercolor] [-t thickness] [-d direction]
[-g1 gravity1] [-g2 gravity2] [-g3 gravity3] [-c1 crop1] [-c2 crop2]
[-c3 crop3] infile1 infile2 infile3 outfile
-s .... size ......... square output size; even integer>0; default=400 PURPOSE: Collages three images in a diagonal orientation. DESCRIPTION: DIAGCOLLAGE collages three images in a diagonal orientation. The first image will span the top half (before rotation) and the other two images will be on the bottom left and bottom right quadrants, respectively. ARGUMENTS: -s size ... SIZE is the even square output size. Values are even integers>0. The default=400. -b bcolor ... BCOLOR is the border color. Any valid IM opaque color is permitted. The default=white. -t thick ... THICK is the border thickness. Values are even integer>0. The default=10. -d direction ... DIRECTIONS of the 5 deg rotation. Values are: p (positive) or n (negative). The default=p (positive). -g1 gravity1 ... GRAVITY1 is the crop gravity setting for image 1. Any IM gravity setting is allowed. The default=center. -g2 gravity2 ... GRAVITY2 is the crop gravity setting for image 2. Any IM gravity setting is allowed. The default=center. -g3 gravity3 ... GRAVITY3 is the crop gravity setting for image 3. Any IM gravity setting is allowed. The default=center. -c1 crop1 ... CROP1 is the crop offsets for image 1. The format is +-X+-Y. The default="+0+0". -c2 crop2 ... CROP2 is the crop offsets for image 1. The format is +-X+-Y. The default="+0+0". -c3 crop3 ... CROP3 is the crop offsets for image 1. The format is +-X+-Y. The default="+0+0". CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. |
Image 1 |
|
Image 2 |
Image 3 |
Arguments: |
|
Arguments: |
|
Arguments: |
|
What the script does is as follows:
This is equivalent to the following IM commands for
|