High performance Node.js image processing library for resizing JPEG, PNG, WebP, GIF, AVIF and TIFF images
80
{
"context": "This criteria evaluates how well the engineer uses Sharp's text image generation capabilities to create a banner generator. The focus is on proper usage of sharp.text() for text rendering, dimension control, and text formatting options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses sharp.text()",
"description": "Uses sharp.text() method to generate text images from input strings",
"max_score": 25
},
{
"name": "Configures text options",
"description": "Passes text configuration options to sharp.text() including font size (using fontsize, font, or dpi options)",
"max_score": 20
},
{
"name": "Sets image dimensions",
"description": "Configures output image dimensions using width and height parameters in the text options",
"max_score": 15
},
{
"name": "Implements text alignment",
"description": "Implements text alignment (left, center, right) using Sharp's align option or equivalent positioning",
"max_score": 20
},
{
"name": "Converts to PNG",
"description": "Uses .png() to convert the generated text image to PNG format",
"max_score": 10
},
{
"name": "Returns Buffer output",
"description": "Uses .toBuffer() to return the image as a Buffer as specified in the API",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-sharpdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10