Removed getxmp()

This commit is contained in:
Andrew Murray 2025-05-07 18:07:40 +10:00
parent ceec3f92fc
commit 5e0457a2b3

View File

@ -24,8 +24,8 @@ except ImportError:
def _accept(prefix: bytes) -> bool:
is_jxl = prefix.startswith(b"\xff\x0a") or prefix.startswith(
b"\x00\x00\x00\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a"
is_jxl = prefix.startswith(
(b"\xff\x0a", b"\x00\x00\x00\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a")
)
if is_jxl and not SUPPORTED:
msg = "image file could not be identified because JXL support not installed"
@ -86,9 +86,6 @@ class JpegXlImageFile(ImageFile.ImageFile):
return None
return self.getexif()._get_merged_dict()
def getxmp(self) -> dict[str, str]:
return self._getxmp(self.info["xmp"]) if "xmp" in self.info else {}
def _get_next(self) -> tuple[bytes, float, float, bool]:
# Get next frame