Fred's ImageMagick Scripts
My scripts are available free of charge for non-commercial use. If you redistribute or incorporate any of these scripts into other free applications, you may use my scripts by simply referencing my name and this web page: Fred Weinhaus and http://www.fmwconcepts.com/imagemagick/index.html For use of my scripts in commercial use or non-free applications, please contact me for
licensing arrangements. Usage, whether stated in script or not, is also subject to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php |
|
Applies a vignette effect to a picture. |
last modified: January 20, 2012
|
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 IM color is allowed. 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:
|