scardine / image_size

Get image width and height given a file path using minimal dependencies (no need for PIL, libjpeg, libpng, etc)
MIT License
153 stars 45 forks source link

Add support for webp #18

Open brunoais opened 1 year ago

brunoais commented 1 year ago

I tried these changes myself and seems to work

I'd rather if the unittest tests were in a separate file (I'm running a reduced variant of python) but I understand the appeal and it's very easy for me to just remove that part when I use this.

Thank you very much for this library!