Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image, ImageDraw, ImageChops
- import glob, os
- for infile in glob.glob("*.jpg"):
- file, ext = os.path.splitext(infile)
- imagename = file + ext
- img = Image.open(imagename)
- img_w, img_h = img.size
- if (round((img_w/img_h),1) != 1.9):
- print (imagename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement