or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses pdf2pic's aspect ratio preservation features, specifically the preserveAspectRatio option and smart dimension handling for fixed-width and bounded thumbnail generation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses fromPath method",
      "description": "Correctly uses pdf2pic's fromPath() method to initialize conversion from a file path",
      "max_score": 10
    },
    {
      "name": "Enables aspect preservation",
      "description": "Sets preserveAspectRatio option to true to enable aspect ratio maintenance",
      "max_score": 25
    },
    {
      "name": "Fixed-width implementation",
      "description": "For fixed-width mode, provides only width option (not height) with preserveAspectRatio: true to allow automatic height calculation",
      "max_score": 25
    },
    {
      "name": "Bounded dimensions implementation",
      "description": "For bounded mode, provides both width and height options with preserveAspectRatio: true to fit within maximum dimensions",
      "max_score": 25
    },
    {
      "name": "Output configuration",
      "description": "Correctly configures savePath and saveFilename options to control where thumbnails are saved",
      "max_score": 10
    },
    {
      "name": "Conversion execution",
      "description": "Properly calls the convert() method with page number to execute the conversion and returns the result",
      "max_score": 5
    }
  ]
}