Skip to content

Commit

Permalink
Restored Makernote as a deprecated enum
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 28, 2024
1 parent d008d12 commit 76776eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
``Image.Image.getim()``, which returns a ``Capsule`` object.

ExifTags.IFD.Makernote
^^^^^^^^^^^^^^^^^^^^^^

.. deprecated:: 11.1.0

``ExifTags.IFD.Makernote`` has been deprecated and will be removed in Pillow 13
(2026-10-15). Instead, use ``ExifTags.IFD.MakerNote``.

Removed features
----------------

Expand Down
7 changes: 4 additions & 3 deletions docs/releasenotes/11.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ TODO
Deprecations
============

TODO
^^^^
ExifTags.IFD.Makernote
^^^^^^^^^^^^^^^^^^^^^^

TODO
``ExifTags.IFD.Makernote`` has been deprecated and will be removed in Pillow 13
(2026-10-15). Instead, use ``ExifTags.IFD.MakerNote``.

API Changes
===========
Expand Down
1 change: 1 addition & 0 deletions src/PIL/ExifTags.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ class IFD(IntEnum):
Exif = 0x8769
GPSInfo = 0x8825
MakerNote = 0x927C
Makernote = 0x927C # Deprecated
Interop = 0xA005
IFD1 = -1

Expand Down

0 comments on commit 76776eb

Please sign in to comment.