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 bevel effect to border of an image. |
last modified: December 15, 2018
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.
|