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 various various grid effects in the border of an image. |
last modified: December 15, 2018
USAGE: bordergrid [-s size] [-t thickness] [-o offset] [-d dimension] [-a angle] [-c color] [-b blur] infile outfile
-s .... size ............ size of border; integer>0; default=5 PURPOSE: To create various grid effects in the border of an image. DESCRIPTION: BORDERGRID creates various grid effects in the border of an image. The grid alternates betweens lines of image and lines of background if only one color is provide. It can also alternates between two colors. The grid can be either 1D or 2D and the grid thickness and spacing can be specified. ARGUMENTS: -s size ... SIZE is the size or dimension of the border region. It will be the same size all around the image. Values are integer greater than 0. The default is 10. -t thickness ... THICKNESS is the thickness of the image grid lines. Values are integers greater than 0. The default=3. -o offset ... OFFSET is the offset or spacing between the image grid lines. This is equivalent to the thickness of the background grid lines. Values are integers greater than 0. The default=3. -d dimension ... DIMENSION determines if the grid lines will be 1D or 2D. Values are either 1 or 2. The default is 1. -a angle ... ANGLE is the angle of rotation of the grid lines (from horizontal for dimension=1). Values are floats between -180 and 180. The default=45. -c colors ... COLORS one or two comma delimted colors. If only one color is profided, then it will be the background color alternating with the image. If two colors are provided, then the first will be the background color and the second color will be the foreground color replacing the image. The default is white. -b blur ... BLUR is the amount of blurring of the grid lines. Values are floats greater or equal to 0. The default=0 (no blurring). 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 | ||
![]() |
||
Arguments: |
Arguments: |
Arguments: |
![]() |
![]() |
![]() |
Arguments: |
Arguments: |
Arguments: |
![]() |
![]() |
![]() |
Arguments: |
Arguments: |
Arguments: |
![]() |
![]() |
![]() |
Arguments: |
Arguments: |
Arguments: |
![]() |
![]() |
![]() |
What the script does is as follows:
This is equivalent to the following IM commands for the case of 1D grid
|