Skip to content

Conversation

@mbeavitt
Copy link

@mbeavitt mbeavitt commented Oct 6, 2025

imghdr was removed as of Python 3.11. This change adds the filetype package to the installation dependencies and updates the function where imghdr was used.

fixes #21

imghdr was removed as of Python 3.11. This change adds the filetype
package to the installation dependencies and updates the function where
imghdr was used.

fixes wustho#21
Now checks for either imgdata or path to imgname and guesses the
filetype in any case.

Added test to test suite and test .mobi from project gutenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dependency on deprecated imghdr module.

1 participant