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-10/

{
  "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
    }
  ]
}

tile.json