/ Images

Go program to batch-process letter-boxing of photographs

Go program to batch-process letter-boxing of photographs

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")
  -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


GitHub