Replace/change/shift colors
Posted: 2017-03-13T06:21:51-07:00
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.
I found this (to change from green to red):
here: http://www.linuxquestions.org/questions ... ost5682829, changing it to
results in a quite violet touch.
Any suggestions?
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.
I found this (to change from green to red):
Code: Select all
convert some_image.jpg \( +clone -channel G -fx R \) +swap -channel R -fx v.G swapped.jpg
Code: Select all
convert checkbox-checked-dark@2.png \( +clone -channel B -fx G \) +swap -channel G -fx v.B swapped.png
Any suggestions?