Skip to content

Instantly share code, notes, and snippets.

@billy3321
Last active October 23, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billy3321/d62df8c9fac83473911a to your computer and use it in GitHub Desktop.
Save billy3321/d62df8c9fac83473911a to your computer and use it in GitHub Desktop.
#!/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