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

image_size module and imagesize_py model #12

Closed oneTaken closed 5 years ago

oneTaken commented 5 years ago

I found the question Get Image size WITHOUT loading image into memory, and I go to the links to this repository and another implementation imagesize_py

which repo should I use? I'm a little confused how to use your code.

pauloscardine commented 5 years ago

If you are only using JPEG/JPEG 2000/PNG/GIF/TIFF go with imagesize_py, the one at my repo knows about a couple other image types. My answer is from 2013 and this is just throwaway code to illustrate that answer - over the time a few people sent patches but it is what it is.