Closed mabrowning closed 2 years ago
Adds a secondary interface (get_from_bytes and getDPI_from_bytes) that uses io.BytesIO instead of opening the file from disk.
get_from_bytes
getDPI_from_bytes
io.BytesIO
Refactors core logic from get() to _get() so it can be reused.
get()
_get()
(No logic changes, compare ignoring whitespace to see)
Will this be merged any time soon?
Thank you. I merged similer PR #46.
Adds a secondary interface (
get_from_bytes
andgetDPI_from_bytes
) that usesio.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)