Wrapper of the Sharp image manipulation library for Gatsby plugins
{
"context": "This criteria evaluates how effectively the engineer uses gatsby-plugin-sharp to implement image format conversion functionality. The focus is on proper usage of Sharp library methods for format conversion, quality control, and format-specific optimization options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Sharp instance creation",
"description": "Uses Sharp library (via require('sharp')) to create image processing instances by loading input files with sharp(inputPath)",
"max_score": 15
},
{
"name": "Format conversion methods",
"description": "Correctly uses Sharp format conversion methods (.jpeg(), .png(), .webp(), .avif()) to convert images to target formats",
"max_score": 25
},
{
"name": "Quality parameter usage",
"description": "Properly passes quality settings to format conversion methods (e.g., .jpeg({ quality: 75 }), .webp({ quality: 50 })) with correct default value of 50",
"max_score": 20
},
{
"name": "JPEG progressive encoding",
"description": "Implements JPEG-specific progressive option using .jpeg({ progressive: true }) when specified in jpegOptions",
"max_score": 15
},
{
"name": "PNG compression level",
"description": "Implements PNG-specific compressionLevel option using .png({ compressionLevel: value }) when specified in pngOptions",
"max_score": 15
},
{
"name": "File output method",
"description": "Uses Sharp's .toFile(outputPath) method to write the converted image to the specified output path and return metadata",
"max_score": 10
}
]
}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