Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from PIL import Image, ImageDraw, ImageChops
  2. import glob, os
  3.  
  4. for infile in glob.glob("*.jpg"):
  5. file, ext = os.path.splitext(infile)
  6. imagename = file + ext
  7. img = Image.open(imagename)
  8. img_w, img_h = img.size
  9. if (round((img_w/img_h),1) != 1.9):
  10. print (imagename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement