turbocharger

package module
v0.0.0-...-9f1d1c4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

turbocharger

A tool to apply engelsjk/colormap styling to an image.

Example

turbocharger -i test/shuttle.jpg -o test

Creates a new image in the output folder with the filename '{filename}-{palette}.{ext}'.

Usage

turbocharger --help
Usage of turbocharger:
  -i string
        input filepath
  -l    list palettes
  -o string
        output dir (default ".")
  -p string
        palette (default "turbo")

Features

Supports only PNG, JPG and JPEG images.

Install

go get github.com/engelsjk/turbocharger

Notes

Shuttle image courtesy of nasa.gov.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TurboCharger

type TurboCharger struct {
	InputPath   string
	OutputPath  string
	Palette     plt.Palette
	PaletteName string
}

TurboCharger ...

func New

func New() *TurboCharger

New instantiates a new TurboCharger instance

func (*TurboCharger) Charge

func (t *TurboCharger) Charge() error

Charge applies the turbo colormap styling to the image specified by an input filepath

func (*TurboCharger) IO

func (t *TurboCharger) IO(input, output, palette string) error

IO runs quality checks and processes the specified input filepath and output dirpath

func (*TurboCharger) ListPalettes

func (t *TurboCharger) ListPalettes()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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