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. |
Superimposes circular grid lines on an image. |
last modified: February 01, 2019
USAGE: radialgrid [-c center] [-m maxradius] [-n numcircles] [-s spacing] [-C color] [-t thickness] [-o opacity] infile outfile
-c ... center ....... x,y coordinate for center of circles; pair of comma separated PURPOSE: To superimpose a set of circulare grid lines on an image. DESCRIPTION: GRID superimposes a set of circular grid lines on an image. Parameters are available to select the grid line color, maximum radius, number of circles, spacing, thickness and opacity. ARGUMENTS: -c center ... CENTER is the x,y coordinate for center of circles. Values are a pair of comma separated floats>=0. The default is the image center. -m maxradius ... MAXRADIUS is the radius of largest circle. Values are either floats>0 or min (minimum), max (maximum), diag (diagonal) half dimension of the image. The default=half the maximum dimension of the image. -n numcircles ... NUMCIRCLES is the number of equally spaced circles from the center to the maxradius. Values are integers>0. The default=10. -s spacing ... SPACING of the circles. Values are floats>0. If spacing is not specified, then the spacing will be determined from maxradius and numcircles. If spacing is specified, then numcircles will be ignored. -C color ... COLOR of the grid lines. Any IM color is allowed, including alpha values. The default=black. -t thickness ... THICKNESS of the circular grid lines. Values are integers>0. The default=1 -o opacity ... OPACITY is the grid line opacity. Values are non-negative floats between 0.0 and 1.0. The default=1 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. |
Circular Grid |
Original Image |
![]() |
arguments: |
![]() |
arguments: |
![]() |
arguments: |
![]() |
arguments: |
![]() |
arguments: |
![]() |
What the script does is as follows:
This is equivalent to the following IM commands for the case of
|