gamutmask

command module
v0.0.0-...-360f567 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 18 Imported by: 0

README

Gamut Mask Tools

Purpose

Generating gamutmask images from existing image files like this (width/height=250, paddingX/paddingY=2)

(Van Gogh Starry Night)

Van Gogh Starry Night

Gamutmask tool once executed generates gamutmask images for every image found in the input folder. By default it runs until stopped thus monitoring for updated or added files.

To run only once:

$ gamutmask -once

To run recursively:

$ gamutmask -recursive

To modify output folder by passing -output parameter:

$ gamutmask -output ./output

The tool monitors the ./_input folder for images unless requested to do it once. The folder can also be changed by passing a value for -intput parameter:

$ gamutmask -input ./input

For help issue

$ gamutmask help

Command line also supports the following parameters:

  • width
  • height
  • paddingX
  • paddingY

Full Help

  -height int
        Height of the resulting gamut image (default 250)
  -help
        Print this help
  -input string
        Folder name where input files are located (default "./_input")
  -monitor
        Monitor input folder for new and updated files (default true)
  -once
        Shortuct to monitor=false
  -output string
        Folder name where output files should be saved (default "./_output")
  -paddingX int
        Widgth of the resulting gamut image (default 2)
  -paddingY int
        Widgth of the resulting gamut image (default 2)
  -recursive
        Walk all subfolders of the input folder too recursively
  -width int
        Widgth of the resulting gamut image (default 250)

Usage as a Library

One can /lib submodule containing the core function itself inside their own project:

func GenerateGamutMask(img image.Image, maskWidth, maskHeight int) (wheel *image.RGBA64)

as well as ProcessChangedFilesOnly function in order to process sets of files some different way.

Requirement

  • go 1.13 (for error unwrapping)

To Build and Install From Source

To resolve dependency tree, simply:

$ go mod verify
$ go build

To install to golang path bin:

$ go install

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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