CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sharp

High performance Node.js image processing library for resizing JPEG, PNG, WebP, GIF, AVIF and TIFF images

80

1.01x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This evaluation assesses how well the engineer uses Sharp's automatic edge trimming capability to build an image border removal utility. The criteria focus specifically on proper usage of Sharp's trim() method and related image processing APIs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Sharp instance creation",
      "description": "Creates a Sharp instance using sharp() constructor with the input image path or buffer to initialize image processing",
      "max_score": 15
    },
    {
      "name": "trim() method usage",
      "description": "Correctly uses the trim() method to automatically detect and remove uniform borders from the image",
      "max_score": 40
    },
    {
      "name": "threshold configuration",
      "description": "Properly configures the trim threshold parameter to control border detection sensitivity, allowing the threshold option to be passed through from the function parameters",
      "max_score": 20
    },
    {
      "name": "Output format preservation",
      "description": "Uses toFile() or toBuffer() to save the trimmed image, preserving the original format and quality settings",
      "max_score": 15
    },
    {
      "name": "Metadata access",
      "description": "Uses metadata() or similar methods to access image information before or after trimming for validation or return values",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sharp

tile.json