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. |
Manually color balances an image in midtones, highlights, or shadows. |
last modified: December 15, 2018
USAGE: colorbalance2 [-c color] [-a amount] [-r region] [-l lowthresh]
[-h highthresh] infile outfile
-c ... color ........ color to modify: red (r), yellow (y), green (g), PURPOSE: To manually color balance an image in midtones, highlights, or shadows. DESCRIPTION: COLORBALANCE2 manually color balances an image according to a user selected color, region and amount. The regions are midtones, shadows, or highlights. ARGUMENTS: -c color ... COLOR to modify. The choices are: red (r), yellow (y), green (g), cyan (c), blue (b) or magenta (m). The default=red -a amount ... AMOUNT of color change. Values are float>=0 as percent, but one can go over 100%. The default=25. -r region ... REGION of image to change. The choices are: midtones (m), shadows (s), or highlights (h). The default=midtones. -l low ... LOW is shadow mask threshold value. Values are in the range 0<=float<=100. The default=25. -h high ... HIGH is highlight mask threshold value. Values are in the range 0<=float<=100. The default=75. 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. |
Midtone Color Variation |
|||||
Original Image |
|||||
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Variation In Region For Color Red |
|||
Original Image |
|||
Arguments: |
Arguments: |
Arguments: |
|
Variation In Region For Color Red |
|||
Original Image |
|||
Arguments: |
Arguments: |
Arguments: |
|
Animation |
|||
What the script does is as follows:
This is equivalent to the following IM commands for the case of midtones:
|