ubershmekel / code-for-another-team

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First sprint Test cases

The first sprint will be used to create core functionality which consists of:

  • Reading image files (of supported file types).
  • Rendering image to the CLI (Command Line Interface).

In this sprint, we will work on the following tasks:

  • Task: Create command-line menu.
  • Task: Make command-line menu robust and user-friendly in case of incompatible option selection.
  • Task: Detect file access issues and return proper error messages.
  • Task: Detect unsupported file types and return proper error messages.
  • Task: Detect unsupported file size and return proper error messages.
  • Task: Detect aspect-ratio and scale image.
  • Task: Implement resolution selection menu option and help instructions.
  • Task: Implement resolution selection feature.
  • Task: Implement default grayscale color palette transformation.
  • Task: Implement duotone color palette transformation.

Usage

To run : npx tsx src/index.ts -i RELATIVE_PATH_TO_INPUT_IMAGE

To test: npm run test

Test suite

Command-line options

Color palette

Help

Combinations

Error handling

General Error handling

File type detection

File size verification

Scaling

About

License:MIT License


Languages

Language:TypeScript 90.9%Language:JavaScript 9.1%