Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Hi1
While changing a (Linux Mint 18.1 Cinnamon) theme a encountered a folder with 50+ png files with buttons and such things.
There are all in varaitions of mintish green of different brightness (for checked/unchecked, presses/release...), and I like to change all those with a batch command to similar variations blue.
Easy replacement isn't possible because of the different shades of the source.
mideal wrote: ↑2017-03-13T06:21:51-07:00There are all in varaitions of mintish green of different brightness (for checked/unchecked, presses/release...), and I like to change all those with a batch command to similar variations blue.
It may not be exactly what you want, but you can use the "-modulate" operator to more or less roll the colors around the wheel. The operator takes up to three arguments. The one you want to adjust for color shifting is the third. A command like this should give you an idea what it can do...
That third argument, where I used a value of 50, can take any number from 0 to 200. Use 100 for no change, and higher or lower values to shift around the color wheel. You can learn more about color modifications at THIS link.
It seems that you have to try a bit with one or two examples to get the expected result color.
90,180,170 gives me the nice blue tones I wanted for all shades in the theme.
I recommend modulating in a different cyclic hue colorspace such as LCHab as it will preserve the color intensity better, though the hue values are slightly different.