image-gen

command module
v0.0.0-...-b94c88b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 10 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL