shibukawa / imagesize_py

MIT License
222 stars 43 forks source link

Add in-memory versions (using io.BytesIO) #24

Closed mabrowning closed 2 years ago

mabrowning commented 5 years ago

Adds a secondary interface (get_from_bytes and getDPI_from_bytes) that uses io.BytesIO instead of opening the file from disk.

Refactors core logic from get() to _get() so it can be reused.

(No logic changes, compare ignoring whitespace to see)

innerlee commented 4 years ago

Will this be merged any time soon?

shibukawa commented 2 years ago

Thank you. I merged similer PR #46.