or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/pillow-heif@1.1.x
tile.json

tessl/pypi-pillow-heif

tessl install tessl/pypi-pillow-heif@1.1.0

Python 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%

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how effectively the engineer uses the pillow-heif package to read and extract information from HEIF/AVIF image files, focusing on proper usage of format detection, file opening, and accessing image container properties.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Format validation",
      "description": "Uses pillow_heif.is_supported() to check if a file is a valid HEIF/AVIF format before attempting to open it.",
      "max_score": 20
    },
    {
      "name": "File opening",
      "description": "Uses pillow_heif.open_heif() or pillow_heif.read_heif() to open and read HEIF/AVIF files. Properly handles the returned HeifFile object.",
      "max_score": 25
    },
    {
      "name": "Primary image access",
      "description": "Accesses the primary image properties correctly using the HeifFile object's properties such as .size, .mode, and .primary_index without manually searching for the primary image.",
      "max_score": 15
    },
    {
      "name": "MIME type extraction",
      "description": "Retrieves the MIME type using the .mimetype property of the HeifFile object.",
      "max_score": 10
    },
    {
      "name": "Multi-image handling",
      "description": "Correctly determines the total number of images using len() on the HeifFile object and iterates through all images in the container using standard Python iteration or indexing (e.g., for image in heif_file or heif_file[i]).",
      "max_score": 20
    },
    {
      "name": "Image property access",
      "description": "For each image in a multi-image file, accesses individual HeifImage properties (.size, .mode) correctly to extract dimensions and color mode information.",
      "max_score": 10
    }
  ]
}