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. |
Transforms the hues in an image from one range to another. |
last modified: December 15, 2018
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.
|