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%
A utility that converts PNG and JPEG images to HEIF format with quality control and metadata preservation.
@generates
def convert_to_heif(input_path: str, output_path: str = None, quality: int = 75) -> None:
"""
Convert a PNG or JPEG image to HEIF format.
Args:
input_path: Path to the input image file (PNG or JPEG)
output_path: Path for the output HEIF file. If None, uses input filename with .heif extension
quality: Encoding quality (0-100, or -1 for lossless). Default is 75.
Raises:
FileNotFoundError: If input_path does not exist
ValueError: If input file is not a valid PNG or JPEG image
"""
passProvides HEIF encoding support from Pillow images.
Provides image loading and manipulation capabilities.