03-30-2021, 10:07 AM
(This post was last modified: 03-30-2021, 10:13 AM by rich2005.
Edit Reason: typo
)
Same as Ofnuts easier with ImageMagick (IM) although it does depend on those 'color filters you want to use.
Looking through my IM notes, I can maybe help a little, save a hunt through the IM documentation.
This is for a single image It needs to be wrapped up in a Windows batch file (I use linux, no good with Win bat files )
Just linear application of commands (1) and (2) colorise the overlay. (3) adds first overlay (4) adds second overlay at an offset (5) makes new greyscale from (4)
Looking through my IM notes, I can maybe help a little, save a hunt through the IM documentation.
This is for a single image It needs to be wrapped up in a Windows batch file (I use linux, no good with Win bat files )
Code:
magick fg.png -colorspace gray -fill "rgb( 0, 128, 0)" -tint 100 temp01.png
magick fg.png -colorspace gray -fill "rgb( 128, 0, 0)" -tint 100 temp02.png
magick composite -gravity center temp01.png bg.png temp03.png
magick composite -gravity center -geometry +20+20 temp02.png temp03.png colored.png
magick colored.png -colorspace gray gs.png
Just linear application of commands (1) and (2) colorise the overlay. (3) adds first overlay (4) adds second overlay at an offset (5) makes new greyscale from (4)