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. |
Applies a perforated postage stamp like border around an image. |
last modified: December 15, 2018
USAGE: postagestamp [-d diameter] [-s spacing] [-b bordersize] [-B bcolor]
[-H hcolor] [-t text] [-f font] [-F fcolor] [-p pointsize] [-g gravity]
[-o offsets ] [-m mode] [-O opacity] [-L length] [-S softness] infile outfile
-d ... diameter ..... diameter of half holes as perforation around the PURPOSE: To apply a perforated postage stamp like border around an image. DESCRIPTION: POSTAGESTAMP applies a perforated postage stamp like border around an image. The perforation size and border can be adjusted and colored. Optionally, a shadow may be added. ARGUMENTS: -d diameter ... DIAMETER of the half holes as perforation around the border in pixels. Values are integers>=0. The default=10. -s spacing ... SPACING between half hole perforations as percent of the diameter. Values are 0<=integer<=100. The default=20. -b bordersize ... BORDERSIZE between image and perforations. Values are integers>=0. The default=15. -B bcolor ... BCOLOR is the border color. Any valid IM color is allowed. The default=white. -H hcolor ... HCOLOR is the hole color for the gaps between perforations. Any valid IM color is allowed. The default=none (for transparent). -t text ... TEXT to place onto the image. The default=no text. -f font ... FONT name or path to font file. The default="Arial". -F fcolor ... FCOLOR is the font color. Any valid IM color is allowed. The default=white. -p pointsize ... POINTSIZE is the font point size. Values are integers>=0. The default=36. -g gravity ... GRAVITY location for placing text. Any valid IM -gravity setting is allowed. The default="southeast". -o offsets ... OFFSETS for positioning the text relative to the gravity location. Values are a comma separate pair of integers>=0. The default="10,30". -m mode ... MODE is the shadow mode. The choices are: none (n), center (c) and bottomright (b). The default=none for no shadow. -O opacity ... OPACITY is the shadow opacity. Values are 0<=integers<=100. The default=75. -L length ... LENGTH is the shadow length (displacement). Values are integers>=0. The default=3. -S softness ... SOFTNESS is the shadow softness (blurring amount). Values are integers>=0. The default=2. 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 - Variation in Perforation Paramters |
||
Original Image |
||
Arguments: |
Arguments: |
Arguments: |
Example 2 - Variation in Shadow |
||
Original Image |
||
Arguments: |
Arguments: |
Arguments: |
Example 3 - Different Image |
|
Original Image |
Arguments: |
What the script does is as follows for a edge sharpened image:
This is equivalent to the following IM commands without the shadow:
|