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 sketch effect to an image. |
last modified: December 15, 2018
USAGE: sketcher [-g gain] [-m method] [-s saturation] [-h hue] [-t thicken] infile outfile
-g ... gain ......... edge gain (i.e. strength); float>=0; default=5 PURPOSE: To apply a sketch-like effect to an image. DESCRIPTION: SKETCHER applies a variety of sketch-like effects to an image. ARGUMENTS: -g gain ... GAIN is the edge gain (i.e. strength or intensity). Values are floats>=0. The default=5. -m method ... METHOD of sketch. The choices are: grayscale, color, screen, softlight, pegtoplight, hardlight, linearlight, and vividlight. The default is grayscale. -s saturation ... color SATURATION. Values are integers>=0. The default=100 (no change). 0 is grayscale and 200 is twice the saturation -h hue ... color HUE. Values are integers>=0. The default=100 (no change). 0 is negative 180 degree rotation (toward blue). 200 is positive 180 degree rotation (toward green). -t thicken ... THICKEN amount for edges. Values are integers>=0. The default=0 (no thickening). REQUIREMENTS: IM 6.6.2.2 due to the use of rotated kernels in -morphology convolve. 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 Method |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 2 -- Variation in Method |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 3 -- Variation in Method |
Original |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 4 -- Variation in Gain |
||
Original |
||
Arguments: |
Arguments: |
Arguments: |
Example 5 -- Variation in Thickening |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 6 -- Variation in Thickening |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 7 -- Variation in Hue |
||
Original |
||
Arguments: |
Arguments: |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands
|