CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-gatsby-plugin-sharp

Wrapper of the Sharp image manipulation library for Gatsby plugins

57

1.07x
Quality

Pending

Does it follow best practices?

Impact

57%

1.07x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-3/

{
  "context": "This evaluation assesses how effectively an engineer uses gatsby-plugin-sharp's basic image resizing capabilities to generate multiple thumbnail sizes. The criteria focus on proper usage of the queueImageResizing function and understanding of its configuration options for width, quality, and batch processing.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses queueImageResizing",
      "description": "Uses the queueImageResizing function (or its alias resize) from gatsby-plugin-sharp to process images",
      "max_score": 30
    },
    {
      "name": "Configures width parameter",
      "description": "Correctly passes the width parameter in the args object for each thumbnail size (200, 400, 800)",
      "max_score": 20
    },
    {
      "name": "Sets quality parameter",
      "description": "Properly configures the quality parameter (set to 75) in the transform args to control JPEG compression",
      "max_score": 15
    },
    {
      "name": "Processes multiple sizes",
      "description": "Successfully processes all three required thumbnail sizes (200px, 400px, 800px) by calling queueImageResizing multiple times or by using batchQueueImageResizing",
      "max_score": 20
    },
    {
      "name": "Extracts result metadata",
      "description": "Correctly extracts and returns the width, height, src, and aspectRatio fields from the ImageResult objects returned by queueImageResizing",
      "max_score": 15
    }
  ]
}

tile.json