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 color splittone effect to an image |
last modified: December 15, 2018
USAGE: splittone1 [-sc shadowcolor] [-sa shadowamt] [-hc highlightcolor] [-ha highlightamt] [-b bri] [-c con] [-s sat] [-h hue] [-m method] [-p processing] infile outfile
-sc ... shadowcolor ...... shadow color; any opaque IM color allowed; PURPOSE: To apply a color splittone effect to an image. DESCRIPTION: SPLITTONE1 applies a color splittone effect to an image by adjusting shadow and highlight color separately. ARGUMENTS: -sc shadowcolor ... SHADOWCOLOR is the shadow color. Any opaque IM color is allowed. The default=black -hc highlightcolor ... HIGHLIGHTCOLOR is the highlight color. Any opaque IM color is allowed. The default=black -sa shadowamt ... SHADOWAMT is the shadow amount. Values are integers between 0 and 100. The default=30 -ha highlightamt ... HIGHLIGHTAMT is the highlight amount. Values are integers between 0 and 100. The default=30 -b bri ... BRI is the percent change in brightness. Values are integers between -100 and 100. The default=0 (no change) -c con ... CON is the percent change in contrast. Values are integers between -100 and 100. The default=0 (no change) -s sat ... SAT is the percent change in saturation. Values are integers between -100 and 100. The default=0 (no change) -h hue ... HUE is the percent change in hue. Values are integers between -100 and 100. The default=0 (no change) -m method ... METHOD specifies the order of shadow and hightlight processing. The choices are: SH (shadow first) or HS (highlight first). The default=SH -p processing ... PROCESSING specifies where to adjust the brightness and contrast. The choices are: pre (for preprocessing), post (for postprocessing) or both (for both places). The default=both 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 |
|
Original Image |
|
![]() |
|
Arguments: |
Arguments: |
![]() |
![]() |
|
|
Arguments: |
Arguments: |
![]() |
![]() |
|
|
Arguments: |
Arguments: |
![]() |
![]() |
|
|
Arguments: |
Arguments: |
![]() |
![]() |
Example 2 |
Original Image |
![]() |
Arguments: |
![]() |
|
Arguments: |
![]() |
What the script does is as follows:
This is equivalent to the following IM commands:
|