Fred's ImageMagick Scripts
|
Transforms the hues in an image from one range to another. |
last modified: November 27, 2011
|
USAGE: huemap [-h hues] [-t tolers] [-r] infile outfile
-h .... hues ....... hues=srchue,dsthue; source and destination hue values; PURPOSE: To transform the hues in an image from one range to another. DESCRIPTION: HUEMAP transform the hues in an image from one range to another. One hue can be mapped to another single hue. One range of hues can be mapped to a single hue. Or one range of hues can be mapped to another range of hues. This is similar to GIMP's Rotate Hues. ARGUMENTS: -h hues ... HUES=SRCHUE,DSTHUE. These are source and destination hue values in the range of 0<=integer<=360. The source hue (range) will be replaced by the detination hue (range), depending upon the tolers values below. The default=240,120 maps blue to green. -t tolers ... TOLERS=STOLER,DTOLER. These are the source and destination ranges on each side of the specified hues that determine the range of hues to be mapped. Values are in the range of 0<=integer<=360. The default=10,10. -r ... REVERSE the direction of the range of destination hues. REQUIREMENT: IM version 6.3.5-7 or higher due to the use of -clut. NOTE: If the image has an alpha channel, it will be copied unchanged to the output image. 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. |
|
convert \( -size 151x151 xc:"rgb(100%,0%,0%)" -colorspace hsl \) \ |
|
|
Original Image |
Original Image |
|
|
|
|
|
|
Arguments: -h 225,0 -t 50,0 |
Arguments: -h 225,0 -t 50,0 |
|
|
|
|
|
|
Arguments: -h 225,0 -t 50,50 |
Arguments: -h 225,0 -t 50,50 |
|
|
|
|
|
|
Arguments: -h 225,0 -t 50,50 -r |
Arguments: -h 225,0 -t 50,50 -r |
|
|
|
|
|
|
Arguments: -h 225,120 -t 50,50 |
Arguments: -h 225,120 -t 50,50 |
|
|
|
|
|
|
Arguments: -h 225,120 -t 50,50 -r |
Arguments: -h 225,120 -t 50,50 -r |
|
|
|
|
|
|
Arguments: -h 60,300 -t 20,20 |
Arguments: -h 60,300 -t 20,20 |
|
|
|
|
|
What the script does is as follows:
This is equivalent to the following IM commands.
|