Skip to content

Instantly share code, notes, and snippets.

@jss367
Last active June 8, 2020 01:10
Show Gist options
  • Save jss367/b77ef85ce3b46a7cb2ef7df8b2679fb9 to your computer and use it in GitHub Desktop.
Save jss367/b77ef85ce3b46a7cb2ef7df8b2679fb9 to your computer and use it in GitHub Desktop.
import mimetypes
image_extensions = set(k for k, v in mimetypes.types_map.items() if v.startswith('image'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment