Python interface for libheif library providing HEIF/AVIF image processing with both standalone and Pillow plugin capabilities
Overall
score
94%
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.
Install with Tessl CLI
npx tessl i tessl/pypi-pillow-heifevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10