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. |
Color balances an image in the midtones in a manner similar to Photoshop |
last modified: December 15, 2018
USAGE: midtonebalance [-rc red-cyan] [-gm green-magenta] [-by blue-yellow ] [-p] infile outfile
-rc ... red-cyan ........ controls the red-cyan color balance; nominal values PURPOSE: To color balance an image in the midtones. DESCRIPTION: MIDTONEBALANCE color balances an image in the midtones in a manner similar to Photoshop. ARGUMENTS: -rc (or -r) red-cyan ... RED-CYAN controls the red-cyan color balance. Nominal values are -100<=integer<=100. Positive values apply more red. Negative values apply more cyan. The default=0 (no change) -gm (or -g) green-magenta ... GREEN-MAGENTA controls the green-magenta color balance. Nominal values are -100<=integer<=100. Positive values apply more green. Negative values apply more magenta. The default=0 (no change) -by (or -b) blue-yellow ... BLUE-YELLOW controls the blue-yellow color balance. Nominal values are -100<=integer<=100. Positive values apply more blue. Negative values apply more yellow. The default=0 (no change) -p ... preserves luminosity LIMITATIONS: Preserve luminosity works best (matches better to Photoshop) for IM 6.8.5.5 or higher with the introduction of colorspace HCLp. 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. |
Variation In Color |
|||||
Original Image |
|||||
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Variation In Strength For Color Blue |
|||
Original Image |
|||
Arguments: |
Arguments: |
Arguments: |
|
Arguments: |
Arguments: |
Arguments: |
|
What the script does is as follows:
This is equivalent to the following IM commands:
|