mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #20197: Added support for the WebP image type in the imghdr module.
Patch by Fabrice Aneche and Claudiu Popa.
This commit is contained in:
parent
e84d26c61b
commit
2f8dca735e
6 changed files with 17 additions and 1 deletions
|
@ -48,6 +48,11 @@ from :func:`what`:
|
|||
+------------+-----------------------------------+
|
||||
| ``'png'`` | Portable Network Graphics |
|
||||
+------------+-----------------------------------+
|
||||
| ``'webp'`` | WebP files |
|
||||
+------------+-----------------------------------+
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
The *webp* type was added.
|
||||
|
||||
You can extend the list of file types :mod:`imghdr` can recognize by appending
|
||||
to this variable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue