Fred's ImageMagick Scripts
|
Applies an inner bevel or outer bevel or emboss effect to an image. |
last modified: July 30, 2010
|
USAGE: bevel [-w width] [-a azimuth] [-e elevation] [-d depth] [-f form] [-i innermode] [-o outermode] [-s soften] [-t taper] [-b bcolor] [-c colormode] infile outfile
-w .... width ........... width of border in pixels; same in both dimensions; PURPOSE: To apply an inner bevel or outer bevel or emboss effect to an image. DESCRIPTION: BEVEL applies an inner bevel or outer bevel or emboss effect to an image, especially one that has an alpha channel. ARGUMENTS: -w width ... WIDTH is the dimensions of bevel/emboss effect. The same value is used in both dimensions. Values are integers greater than 0. The default=5. -a azimuth ... AZIMUTH is the angle in degrees in the x-y plane measured counterclockwise from EAST to the light source. Values are integers in the range 0<=azimuth<=360. The default=135 (NorthWest). -e elevation ... ELEVATION is the angle in degrees upwards from the x-y plane to the light source. Values are integers in the range 0<=elevation<=90. The default=30. -d depth ... DEPTH controls the depth effect. It basically adjust the contrast of the shading in the effect. Values are integers>=0. Larger values increase the depth/contrast and smaller values decrease the depth/contrast. The default=100. -f form ... FORM of the effect. The choices are: inner, outer or emboss. The default=inner. -i innermode ... INNERMODE is the mode for form=inner or emboss. The choices are: hard or smooth. The default=hard. -o outermode ... OUTERMODE is the mode for form=outer or emboss. The choices are: raised or lowered. The default=raised. -s soften ... SOFTEN is the amount of softening or smoothing in the effect. Values are integer>=0. Nominal values are 0 to about 10. The default=0 (no softening). -t taper ... TAPER is the rate of tapering for form=outer or emboss. Values are integesr>=0. Nominally, taper is about 0 to 3. Smaller taper means the effect rolls off or tapers faster and is more downward curved. Larger values means the taper rolls off more slowly and flatly. The default=2 for mode=raised and the default=0 for mode=lowered. -b bcolor ... BCOLOR is the color to apply to the outer bevel or outer bevel part of emboss. Any valid opaque IM color is allowed. The default=gray -c colormode ... COLORMODE is the colorization mode to use when bcolor is assigned. The choices are: dark or light. The default=dark. NOTE: When the image has no alpha channel or a fully opaque alpha channel, then it is recommended that one use my bevelborder script, as it is much faster. 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. |
|
Original | |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
What the script does is as follows (for the case of inner bevel):
This is equivalent to the following IM commands for the case of form=inner and imode=hard.
|