Wrapper of the Sharp image manipulation library for Gatsby plugins
{
"context": "This criteria evaluates how effectively an engineer uses gatsby-plugin-sharp's duotone image processing capabilities to apply two-tone color effects based on image luminance. The focus is on proper use of the package's transformation API, particularly the duotone parameter with highlight/shadow colors and opacity controls.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses gatsby-plugin-sharp",
"description": "Solution imports and uses gatsby-plugin-sharp or its underlying Sharp library for image processing, rather than implementing custom pixel manipulation",
"max_score": 20
},
{
"name": "Duotone transformation",
"description": "Applies duotone effect using the package's duotone transformation capability (e.g., through queueImageResizing, fluid, fixed, or gatsbyImageData with duotone parameter containing highlight and shadow properties)",
"max_score": 30
},
{
"name": "Highlight and shadow",
"description": "Correctly passes highlight and shadow color values in hex format to the duotone transformation options",
"max_score": 15
},
{
"name": "Opacity support",
"description": "Implements optional opacity parameter and passes it to the duotone transformation options for blending with the original image",
"max_score": 15
},
{
"name": "Image output handling",
"description": "Uses the package's image resizing/transformation queue (queueImageResizing) or similar API to process and save the transformed image to the specified output path",
"max_score": 15
},
{
"name": "Format handling",
"description": "Leverages the package's multi-format support capabilities to handle different output formats (JPEG, PNG, WebP) as specified in the requirements",
"max_score": 5
}
]
}tessl i tessl/npm-gatsby-plugin-sharp@5.15.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10