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 vignette effect to a picture. |
last modified: November 22, 2023
USAGE: vignette2 [-a amount] [-d dim] [-s shape] [-r round] [-c color] [-m method] [-i] infile outfile
-a ... amount ... vignette amount; blur sigma value; integer≥0; default=25 PURPOSE: Applies a vignette effect to a picture. DESCRIPTION: VIGNETTE2 applies a vignette effect to a picture. The vignette shape may be any of the following: rectangle, roundrectangle, ellipse or circle. This is similar to the way Photoshop does vignetting. ARGUMENTS: -a amount ... AMOUNT is the vignette amount expressed as a blur sigma value. Values are integer≥0. The default=25. -d dim ... DIM are vignette region boundary dimensions relative to the size of the input image expressed as Width,Height in percent or pixels. One or two values may be supplied. If only one, then it will be used for the second dimension if needed. Values are integers>0. If percent, then add % symbol as Width%[,Height%]. Vignette dimensions must not be larger than the image dimensions or 100%. The default=90%. -s shape ... SHAPE is the shape of the vignette region boundary. The choices are: rectangle (r), roundrectangle (rr), ellipse (e) or circle (c). The default=roundrectangle. -r round ... ROUND is the amount of rounding for roundrectangle. Values are integers>0. The default=2*amount. -c color ... COLOR is the vignette color. Any opaque IM color is allowed or "none" for a transparency vignette effect, The default=black. -m method ... METHOD is the vignette color compose method. Any IM compose method is allowed. The default=multiply. -i ... INVERT the vignette effect from outside to inside. 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 Vignette Amount |
|
Original | |
Arguments: |
Arguments: |
Example 2 -- Variation In Vignette Dimension |
|
Original | |
Arguments: |
Arguments: |
Example 3 -- Variation In Vignette Shape |
|
Original | |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 3 -- Variation In Vignette Darkness |
|
Original | |
Arguments: |
Arguments: |
Example 4 -- Variation In Vignette Compose Method |
|
Original | |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 5 -- Inversion |
|
Original | |
Arguments: |
Arguments: |
What the script does is as follows for mode=intensity:
This is equivalent to the following IM commands for dim specified as percent:
|