Giter Club home page Giter Club logo

letterbox's Introduction

Letterbox

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

Installation

From gobinaries.com:

$ curl -sf https://gobinaries.com/tj/letterbox/cmd/letterbox | sh

From source:

$ 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

Sponsors

This project is sponsored by my GitHub sponsors:

letterbox's People

Contributors

kandros avatar neighborhood999 avatar r3vit avatar tj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

letterbox's Issues

Skip if output image exists

If the output image exists and its mtime is greater than the source image, we can just skip re-creating it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.