How do I edit multiple files in PIL

Solution 1:

you may try this:

import glob
import PIL
from PIL import Image

for i in glob.glob('./*.png'):
    img = Image.open(i)
    img.putalpha(127)
    img.save("")