tessl install tessl/pypi-pillow-heif@1.1.0Python interface for libheif library providing HEIF/AVIF image processing with both standalone and Pillow plugin capabilities
Agent Success
Agent success rate when using this tile
94%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.45x
Baseline
Agent success rate without this tile
65%
Build a tool that extracts and displays XMP metadata from HEIF/AVIF image files.
Create a Python module that provides functionality to read and extract XMP metadata from HEIF and AVIF image files. The tool should handle both files with XMP data and files without XMP data gracefully.
@generates
def extract_xmp(file_path: str) -> str | None:
"""
Extract XMP metadata from a HEIF or AVIF image file.
Args:
file_path: Path to the HEIF/AVIF image file
Returns:
XMP metadata as a UTF-8 string if present, None otherwise
Raises:
FileNotFoundError: If the file does not exist
ValueError: If the file is not a valid HEIF/AVIF file
"""
passProvides HEIF/AVIF image processing with metadata support.
@satisfied-by