Skip to content

Instantly share code, notes, and snippets.

@enijkamp
Created January 8, 2019 08:26
Show Gist options
  • Save enijkamp/a827f446416108b3b46846e9acc058de to your computer and use it in GitHub Desktop.
Save enijkamp/a827f446416108b3b46846e9acc058de to your computer and use it in GitHub Desktop.
from PIL import Image
import glob
for p in glob.glob('*.png'):
with open(p, 'rb') as f:
img = Image.open(f)
try:
img.convert('RGB')
except:
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment