Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace imghdr by puremagic #19074

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Commits on Oct 29, 2024

  1. replace imghdr by puremagic

    imghdr allowed to detect a few imagetimes and has been deprecated
    in python 3.13: https://docs.python.org/3.12/library/imghdr.html
    
    from the release notes:
    
    > The filetype, puremagic, or python-magic libraries should be used as replacements.
    > For example, the puremagic.what() function can be used to replace the imghdr.what()
    > function for all file formats that were supported by imghdr.
    
    See also https://github.com/cdgriffith/puremagic/blob/763349ec4d02ba930fb1142c6eb684afdf06c6ab/puremagic/main.py#L421
    bernt-matthias committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    6fb95f7 View commit details
    Browse the repository at this point in the history