How do I use PIL to implement the equivalent of merging a layer in "dodge" mode with another layer (as done in Gimp/Photoshop)?
I have my original image as well as the image I'd like to use as the layer to merge with, but I don't how to do the dodge merge/composite:
from PIL import Image, ImageFilter, ImageOps
img = Image.open(fname)
img_blur = img.filter(ImageFilter.BLUR)
img_blur_invert = ImageOps.invert(img_blur)
# Now "dodge" merge img_blur_invert on top of img