Restored Makernote as a deprecated enum

This commit is contained in:
Andrew Murray 2024-12-30 21:14:23 +11:00
parent d008d12ba3
commit 050caa9cae
3 changed files with 13 additions and 3 deletions

View File

@ -175,6 +175,14 @@ deprecated and will be removed in Pillow 12 (2025-10-15). They were used for obt
raw pointers to ``ImagingCore`` internals. To interact with C code, you can use raw pointers to ``ImagingCore`` internals. To interact with C code, you can use
``Image.Image.getim()``, which returns a ``Capsule`` object. ``Image.Image.getim()``, which returns a ``Capsule`` object.
ExifTags.IFD.Makernote
^^^^^^^^^^^^^^^^^^^^^^
.. deprecated:: 11.1.0
``ExifTags.IFD.Makernote`` has been deprecated. Instead, use
``ExifTags.IFD.MakerNote``.
Removed features Removed features
---------------- ----------------

View File

@ -23,10 +23,11 @@ TODO
Deprecations Deprecations
============ ============
TODO ExifTags.IFD.Makernote
^^^^ ^^^^^^^^^^^^^^^^^^^^^^
TODO ``ExifTags.IFD.Makernote`` has been deprecated. Instead, use
``ExifTags.IFD.MakerNote``.
API Changes API Changes
=========== ===========

View File

@ -353,6 +353,7 @@ class IFD(IntEnum):
Exif = 0x8769 Exif = 0x8769
GPSInfo = 0x8825 GPSInfo = 0x8825
MakerNote = 0x927C MakerNote = 0x927C
Makernote = 0x927C # Deprecated
Interop = 0xA005 Interop = 0xA005
IFD1 = -1 IFD1 = -1