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 crosshatch effect to an image. |
last modified: December 15, 2018
USAGE: crosshatch [-l length] [-s sharp ] [-g gain ] [-a amount] [-p prune] [-b balance] [-e effect] [-m mix] [-B bri] [-C con] [-S sat] infile outfile
-l ... length .... length of strokes; integer>=0; default=7 PURPOSE: To apply a crosshatch effect to an image. DESCRIPTION: CROSSHATCH applies a crosshatch effect to an image. Options include: the length, gain, (edge) amount, balance and effect of the stroke. ARGUMENTS: -l length ... LENGTH of strokes. Values are integers>=0. The default=7. -s sharp ... SHARP is the sharpness of image and strokes. Values are integers>=0. The default=10. -g gain ... GAIN (strength) of strokes. Values are integers>=0. The default=1. -a amount ... EDGE AMOUNT. Values are integers>0. The default=1. -p prune ... EDGE PRUNING. Values are integers (positive or negative). Positives remove lighter edges and negatives remove darker edges. The default=0. -b balance ... BALANCE between plus and minus 45 degree diagonal strokes. Values are -100<=integer<=100. The default=0. -e effect ... STROKE EFFECT. The choices are normal(n), light(l) or dark(d). The default=normal. -m mix ... MIX (blend) between original and processing image. Values are 0<=integer<=100. 0 is original image. 100 is processed image. The default=100 (processed image). -B bri... BRI is the percent change of brightness. Values are positive or negative integers. The default=0. -C con... CON is the percent change of contrast. Values are positive or negative integers. The default=0. -S sat... SAT is the percent change of saturation. Values are positive or negative integers. The default=0. 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 Sharpening |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 2 - Variation In Gain |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 3 - Variation In Amount; Gain = 1 |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 4 - Variation In Amount; Gain = 5 |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 5 - Variation In Pruning |
||
Original |
||
Arguments: |
Arguments: |
Animation |
Example 6 - Variation In Balance |
||
Original |
||
Arguments: |
Arguments: |
Animation |
Example 7 - Variation In Effect |
||
Original |
||
Arguments: |
Arguments: |
Animation |
What the script does is as follows:
This is equivalent to the following IM commands
|