Last active
October 23, 2015 16:24
-
-
Save billy3321/d62df8c9fac83473911a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from PIL import Image, ImageDraw | |
import glob, os | |
jpgs = glob.glob('*.jpg') | |
for jpg in jpgs: | |
im = Image.open(jpg) | |
# print(jpg) | |
# print(im.size) | |
dr = ImageDraw.Draw(im) | |
dr.rectangle(((0, (im.size[1] - 57)),(363, im.size[1])), fill="white") | |
im.save(jpg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment