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. |
Creates a polygon ring image from one or more images. |
last modified: December 15, 2018
USAGE: polyring [-d duplicates] [-f format] [-b bcolor] [-m maxsize] infile1 [infile2 infile3 ... ] outfile
-d ... duplicates ... duplicate images to use when only one input image is supplied, PURPOSE: To create a polygon ring from one or more images. DESCRIPTION: POLYRING creates a polygon ring image from one or more images. One input may be duplicated multiple times so that there are 3 or more copies. Or 3 or more different input images may be supplied. If multiple input images are supplied, they will be center cropped to the minimum dimensions from all the images supplied. ARGUMENTS: -d duplicates ... DUPLICATES is the number of duplicate images to use when only one input image is supplied, including the input. Values are integer>=3. The default=6. The associated polygon number of sides will be the value of duplicates. If multiple images are supplied, then that will take precedence. If more than one image is supplied, then there must be at minimum 3 images supplied and no more than 6 images supplied. -f format ... FORMAT for the output. Choices are: polygon (p) or ring (r). The default=polygon. The polygon shape will be determined by the total number of images used, including the duplicates. -b bcolor ... BCOLOR is the background color of the output. Any valid IM color is allowed. The default=white. -m maxsize ... MAXSIZE is the output image's maximum size (dimension). The value is an integer>0. The default is twice the input image's minimum width plus twice the minimum height plus twice computed radius. 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. |
Example 1 |
Original |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 2 |
Originals |
Arguments: |
Arguments: |
What the script does is as follows for polygon method:
This is equivalent to the following IM commands
|