Python: Simplest (non-PIL) way to get image metadata (mainly size) -


i'm gathering basic metadata images - dimensions, although it'd nice other available metadata well. image formats i'm interested in png, jpg, , gif.

i'm using pil @ moment, occurred me there may simpler way doesn't involve external dependencies or binary libraries. there one?

answer: no there not simpler way using external library.

if going care 1 , 1 file format only, yes. it's easy implement specific that. if want generic, need support lot of file formats, , don't want work yourself.

to simplify install of pil, might @ pillow, friendly fork§ makes pil easy_installable.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -