Fred's ImageMagick Scripts
|
Changes the color saturation in an image. |
last modified: May 30, 2008
|
USAGE: saturation [value] infile outfile
value ................ saturation gain factor (float); PURPOSE: To change the color saturation in an image. DESCRIPTION: SATURATION changes the color saturation in an image in a linear manner. The image is first converted to HSL colorspace and then the saturation value is used as a multiplier for each value in the S channel. Then the modified saturation channel is recombined with the H and L channels and the image is converted to RGB colorspace as output. ARGUMENTS: value --- value is the saturation factor. It is a multiplier for the saturation channel in an image. Values greater than 1 will increase the saturation of the image and values less than 1 will decrease the saturation of the image. The default is 1 or no gain. 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. |
|
Increasing Saturation | ||||
|
Original Image |
Arguments: |
Arguments: | ||
|
|
|
||
|
Decreasing Saturation | ||||
|
Original Image |
Arguments: |
Arguments: | ||
|
|
|
||
|
What the script does is as follows:
This is equivalent to the following IM commands for
|