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%
{
"context": "This criteria evaluates how effectively the engineer uses the pillow-heif package to save images in HEIF and AVIF formats. It focuses on proper use of the package's encoding capabilities, quality control features, and format selection options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Pillow Integration",
"description": "Uses pillow-heif's Pillow plugin integration (e.g., register_heif_opener() or from pillow_heif import register_heif_opener) to enable HEIF/AVIF saving through PIL.Image.save()",
"max_score": 25
},
{
"name": "Format Selection",
"description": "Correctly specifies the output format using the 'format' parameter in save() method (format='HEIF' or format='AVIF') or uses from_pillow() with appropriate format specification",
"max_score": 20
},
{
"name": "Quality Control",
"description": "Implements quality control using the 'quality' parameter in the save() method, supporting values from 0-100 and handling the special lossless case (quality=-1)",
"max_score": 20
},
{
"name": "Lossless Encoding",
"description": "Properly configures lossless encoding when quality=-1 by also setting appropriate parameters like chroma=444 and matrix_coefficients=0 for true lossless output",
"max_score": 15
},
{
"name": "Alpha Channel",
"description": "Preserves alpha channel information by ensuring images with transparency maintain their alpha channel during conversion (RGBA mode support)",
"max_score": 10
},
{
"name": "File Handling",
"description": "Uses appropriate image opening methods (PIL.Image.open() or pillow_heif.open_heif()) and properly saves to the output path using the save() method",
"max_score": 10
}
]
}