Roughsketch / imagesize

Quickly probe the size of various image formats without reading the entire file.
MIT License
57 stars 12 forks source link

Changed image_type() function #6

Closed katyo closed 5 years ago

katyo commented 5 years ago

Changed return type of image_type() to ImageResult. Correct handling of two different cases: "not enough data" and "not supported image".

katyo commented 5 years ago

Possible solution for #5

Roughsketch commented 5 years ago

Looks like it passed the tests, but they aren't linked here. For future reference

Thanks for the PR. I'll merge this and create a 0.6 version soon since this is a breaking change.