mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 16:52:29 +03:00
Removed getxmp()
This commit is contained in:
parent
ceec3f92fc
commit
5e0457a2b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user