Fred's ImageMagick Scripts
|
Applies a bevel effect to border of an image. |
last modified: June 30, 2011
|
USAGE: bevelborder [-s size] [-m method] [-p percent] [-c contrast] [-b bcolor] [-a amount] [-t type] infile outfile
-s .... size ............ size of border in pixels; same in both dimensions; PURPOSE: To applies a bevel effect to the border of an image. DESCRIPTION: BEVELBORDER applies a bevel effect to the border of an image. The bevel can be an outer bevel (raised effect), an inner bevel (depressed effect) or a split (mix) of the two. The border may also be colorized. ARGUMENTS: -s size ... SIZE is the dimensions of the border region in pixels. The same value is used in both dimensions. Values are integers greater than 0. The default is 10% of the min(width,height) of the image. -m method ... METHOD is the bevel method. Choices are: outer, which makes a raised effect; inner, which makes a depressed effect; and split, which is part raised and part depressed. The amount of each is controlled by the percent argument. The default is outer. -p percent ... PERCENT is the percent split between outer and inner bevels. Values are integers such that 0<=percent<=100. A value of 100 is full outer bevel. A value of 0 is full inner bevel. The default is 50 and only applies when the method=split. -c contrast ... CONTRAST percent for innerbevel or outerbevel. Values are integers between 0 and 100. The default=50. -b bcolor ... BCOLOR is the bevel colorization color. Any valid opaque IM color is allowed. The default is no additional colorization. -a amount ... AMOUNT of colorization. Values are integers between 0 and 100. The default=25. -t type ... TYPE of compose. Choices are: hardlight, linearlight and vividlight. The default=hardlight REQUIREMENTS: IM 6.5.9.0 or higher due to the use of -brightness-contrast. 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: |
|
|
|
|
What the script does is as follows:
This is equivalent to the following IM commands for the case of method=outer.
|