I have 1000+ images in a directory labelled:
x_1.bmp
x_2.bmp
x_3.bmp
y_1.bmp
y_3.bmp
...etc
Ideally, I'd like to overlay all files with a similar name and export as x_P.png, y_P.png, etc. as below. All images are the same size and none of the colour pixels overlap.
I've tried to batch overlay images using a merge-divide script function in GIMP/BIMP without success. Would PIL.Image.Image.paste()
be able to do this, or something similar? I'm using Windows and Python 3.7.3
Thanks
.bmp
to.png
? What do you mean by "overly all files with a similar name"? – Ayush Gargx_1.bmp
the red channel andx_2.bmp
the green channel? Please show your images and the expected result, else we are all guessing and wasting our time. Thank you. – Mark Setchell