Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 977 Bytes

README.md

File metadata and controls

46 lines (41 loc) · 977 Bytes

image-gen

Generates images for the TinkerSoc Website

Traverses a tree of images, and resizes them based on a configuration.

There are a handful of algorithms for resizing images. They are detailed here. Box is the fastest, Lanczos is the highest quality.

  • Box
  • BSpline
  • CatmullRom
  • Lanczos
  • Linear
  • MitchellNetravali
  • NearestNeighbor
{
  "Paths": [
    {
      "Path": "/path/to/source",
      "Destination": "/path/to/destination",
      "Ignore": "/path/to/source/ignore",
      "Recursive": true,
      "Resize": [
        {
          "Algorithm": "Box",
          "Suffix": "-large",
          "Width": 960,
          "Height": 960,
          "KeepAspectRatio": true
        },
        {
          "Algorithm": "Lanczos",
          "Suffix": "-medium",
          "Width": 480,
          "Height": 480,
          "KeepAspectRatio": true
        }
      ]
    }
  ]
}