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 woodcut effect to an image. |
last modified: December 16, 2018
USAGE: woodcut [-k king] [-p presharp] [-e edge] [-d dither] [-P postsharp]
-k ... kind ........ kind of woodcut; choices are: burn (b) or carve (c); PURPOSE: To apply woodcut effect to an image. DESCRIPTION: WOODCUT applies a woodcut effect to an image. The effect is placed over a user supplied background wood texture image. Two kinds of effects are possible: a burn-in like effect and a carved-like effect. ARGUMENTS: -k kind ... KIND of woodcut. Choices are: burn (b) or carve (c). The default=burn. -p presharp ... PRESHARP is the pre-sharpening amount. Values are floats>=0. The default=12. -e edge ... EDGE is the amount of edge enhancement. Values are floats>=0. The default=3. -d dither ... DITHER percent strength. Values are integers betwee 0 and 100. The default=50. -P postsharp ... POSTSHARP is the post-sharpening amount. Values are floats>=0. The default=0. -a azimuth ... AZIMUTH is the angle in degrees in the x-y plane measured counterclockwise from EAST to the light source used for the carve effect. Values are integers in the range 0 to 360. The default=135 (NorthWest). -i intensity ... INTENSITY of the carve effect. Values are floats>=0. The default=1. -m mix ... MIX percent between processed image and woodfile. Values are integers between 0 and 100. The default=40. -c colors ... COLORS are the colors used for additional colorizing of the processed image. Values are a comma separated pair of colors for foreground and background. The default="black,white". -S sat ... SAT is the saturation gain to apply to the woodfile. Values are integers>=0. The default=125; (100 is no change). -H hue ... HUE adjustment vallue for background woodfile. Values are integers>=0. The default=100 (no change) REQUIREMENTS: IM 6.4.8-8 in order to support -function polynomial in the carve method when intensity is other than one. 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 Dither |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
|
![]() |
|
Arguments: |
Arguments: |
![]() |
![]() |
Example 2 - Variation in Pre-Sharpening |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
Arguments: |
![]() |
![]() |
Example 3 - Variation in Post-Sharpening |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
Arguments: |
![]() |
![]() |
Example 4 - Variation in Mix |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
|
![]() |
|
Arguments: |
Arguments: |
![]() |
![]() |
Example 5 - Variation in Colorizing |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
Arguments: |
![]() |
![]() |
Example 6 - Variation in Kind |
|
Original Image |
Cropped Woodgrain Image |
![]() |
![]() |
Arguments: |
|
![]() |
|
Arguments: |
Arguments: |
![]() |
![]() |
Example 7 - Larger Image |
Original Image |
![]() |
Arguments: |
![]() |
What the script does is as follows:
This is equivalent to the following IM commands for kind=burn.
|