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. |
Adds a striped border to an image. |
last modified: January 19, 2022
USAGE: stripes [-t thickness] [-m mode] [-c1 color1] [-c2 color2] [-a angle] [-r rounding] infile outfile
-t .... thickness ... thickness of each of two stripes composing the border; PURPOSE: Adds a striped border to an image. DESCRIPTION: STRIPES adds a striped border to an image. The angle of the stripes may be specified along with the thickness and rounding of the border. The border may be specified either inside or outside the input image. ARGUMENTS: -t thickness ... THICKNESS of each of two stripes composing the border. Values are integers>=0. The default=10. -m mode ... MODE of striped border. The choices are: inside (i) or outside (o). The default is inner. -c1 color1 ... COLOR1 is the color of the first stripe. Any valid Imagemagick opaque color may be specified. The default=red. -c2 color2 ... COLOR2 is the color of the second stripe. Any valid Imagemagick opaque color may be specified. The default=blue. -a angle ... ANGLE of stripes in degrees. Values are -180<=integer<=180. The default=45. -r rounding ... ROUNDING of the corners. Values are integers>=0. The default=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. |
Original Image |
|
Arguments: -m inside -r 20 |
|
Arguments: -m outside -r 20 |
What the script does is as follows:
This is equivalent to the following IM commands no border is used.
|