| 1 |
:mod:`!imghdr` --- Determine the type of an image |
| 2 |
================================================= |
| 3 |
|
| 4 |
.. module:: imghdr |
| 5 |
:synopsis: Removed in 3.13. |
| 6 |
:deprecated: |
| 7 |
|
| 8 |
.. deprecated-removed:: 3.11 3.13 |
| 9 |
|
| 10 |
This module is no longer part of the Python standard library. |
| 11 |
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after |
| 12 |
being deprecated in Python 3.11. The removal was decided in :pep:`594`. |
| 13 |
|
| 14 |
Possible replacements are third-party libraries from PyPI: |
| 15 |
:pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic`. |
| 16 |
These are not supported or maintained by the Python core team. |
| 17 |
|
| 18 |
The last version of Python that provided the :mod:`!imghdr` module was |
| 19 |
`Python 3.12 <https://docs.python.org/3.12/library/imghdr.html>`_. |