Skip to content
Go program to batch-process letter-boxing of photographs.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
cmd/letterbox
.gitignore
LICENSE
Readme.md
go.mod
go.sum
letterbox.go

Readme.md

Letterbox

A tiny Go program to batch-process letter-boxing of photographs.

Installation

$ go get github.com/tj/letterbox/cmd/letterbox

Usage

Usage of letterbox:
  -aspect string
    	Output aspect ratio (default "16:9")
  -concurrency int
    	Concurrency of image processing (default 8)
  -force
    	Force image reprocess when it exists
  -output string
    	Image output directory (default "processed")
  -padding int
    	Output image padding in percentage
  -quality int
    	Output jpeg quality (default 90)
  -white
    	Output a white letterbox

Examples

Example of 1:1

$ letterbox -aspect 1:1

Example of 4:3

$ letterbox -aspect 4:3

Example of 16:9 (the default)

$ letterbox -aspect 16:9

Example of explicitly listing images:

$ letterbox DSCF6719.jpg DSCF6718.jpg

Example of 1:1 with a white background and 6% padding:

$ letterbox -white -aspect 1:1 -padding 6


GoDoc

You can’t perform that action at this time.