: Batch replace image color I have plenty of images made up with the same color, just like those: Now what I want is to change their "main" color from "#3d507d" to "#7C0A0A". I tried to
I have plenty of images made up with the same color, just like those:
Now what I want is to change their "main" color from "#3d507d" to "#7C0A0A".
I tried to do that by changing the "hue/saturation" but with no success.
(batch changing the hue/saturation is available with this gimp script
:http://registry.gimp.org/node/23499 )
So, how can I change the color from "#3d507d" to "#7C0A0A" ? preferably with batch/scripting option?
I use GIMP / Inkscape / Photoshop.
I prefer explanations in this order (most preferred GIMP)
BTW, I don't want to change only the "#3d507d" pixels, I want to change also the "gradiented"/"Edged"/"partly transparent" pixels to match the change to "#7C0A0A". - in other words - It should be looking good...
Thanks.
More posts by @Smith574
2 Comments
Sorted by latest first Latest Oldest Best
BTW, I don't want to change only the "#3d507d" pixels, I want to change also the "gradiented"/"Edged"/"partly transparent" pixels to match the change
I am not entirely sure what data you have, but if you happen to have SVGs (or another vector format), the problem with partial pixels does not arise, as there are no pixels in the first place. In this case you can make use of SVGs having a plain source and perform the replacement with a simple search-and-replace script. For example, on a unixoid system the following command should do your replacement on all SVGs in the current folder:
sed "s/#3d507d/#7c0a0a/g" *.svg
Note that this is modulo capitalisation, so you might need to replace #3d507d with #3D507D .
I don't know much about Gimp but maybe you can use my Photoshop example and find a way in Gimp to achieve this.
In Photoshop, I would make an action that does something like this and then do a batch processing:
1) put the image to grayscale,
2) change the image mode to duotone mode using your new color + a gray
3) convert back to RGB mode
4) save.
BUT all the image will become with the red hue, including the light shadow unless you use 2 colors in your duotone and adjust the curves to use a gray/black for the lightest part and a 100% of your new HEX color for the darker part of your images.
That's what I did in my example. It's not perfect, I did it quickly and you might find a better adjustment; the shadow is still a bit red and the text doesn't look bad. If you don't mind about that little shadow, you can use a monotone too.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.