Python interface for libheif library providing HEIF/AVIF image processing with both standalone and Pillow plugin capabilities
Overall
score
94%
Create a Python program that processes images and embeds custom EXIF metadata when saving them in HEIF format. The program should accept an input image, update specific EXIF fields with provided values, and save the result as a HEIF file while preserving the original image quality and color profile.
The program must:
The program must:
The program must:
The program must:
Create a Python module metadata_manager.py with a function:
def add_exif_to_heif(input_path, output_path, camera_make, camera_model, copyright_text):
"""
Load an image, add EXIF metadata, and save as HEIF format.
Args:
input_path: Path to input image file
output_path: Path to output HEIF file
camera_make: Camera manufacturer name
camera_model: Camera model name
copyright_text: Copyright information
"""
passCreate test file: test_metadata_manager.py
Input:
Expected behavior:
Input:
Expected behavior:
Input:
Expected behavior:
Provides HEIF/AVIF image encoding and EXIF metadata handling.
Provides image processing and EXIF data manipulation.
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