Skip to content

wayneashleyberry/lut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LUT contains command-line tools and Go packages for applying colour adjustments to images using lookup tables. I gave a talk on the subject at London Gophers.

go.dev reference Go CodeQL Go Report Card

Motivation

This command-line tool and packages were written to inspect LUT's locally, and provide basic server-side rendering. This is most likely a bad idea, and you should probably be doing colour manipulations in OpenGL or a similar graphics programming framework.

There are tons of free LUT's available online, luthouse.com is a great example.

Usage

Usage:
  lut [flags]
  lut [command]

Available Commands:
  apply       Adjust image colour according to a LUT
  convert     Convert a LUT file to a different format
  help        Help about any command
  version     Print version information

Flags:
  -h, --help   help for lut

Use "lut [command] --help" for more information about a command.

Installation

This project uses Go modules, so make sure to clone it outside of your $GOPATH. You will need at least Go 1.12.

git clone git@github.com:wayneashleyberry/lut.git
cd lut
go mod download
go run main.go

Supported Features

  • 3D LUT's stored in the .cube format (recommended)
  • Squar image LUT's stored in 512x512 jpeg or png images
  • Filter intensity
  • Trilinear interpolation

Not yet supported

  • Image LUT's of arbitrary sizes
  • 2d .cube files

About

LUT contains command-line tools and Go packages for applying colour adjustments to images using lookup tables

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published