Skip to content

About

smartcrop finds good image crops for arbitrary crop sizes

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

smartcrop-cli

Build Status GitHub release MIT License Go Report Card PRs Welcome

smartcrop finds good image crops for arbitrary crop sizes

A command line client for the wonderful smartcrop library.

Install

Option 1: Binary

Download the latest release from https://github.com/jakewarren/smartcrop-cli/releases/latest

Option 2: From source

go get github.com/jakewarren/smartcrop-cli

Usage

ℹ The width and height parameters are used to determine the aspect ratio; the generated image likely will not have the requested size.

❯ smartcrop-cli --help
usage: smartcrop-cli [<flags>] <input>

smartcrop finds good image crops for arbitrary crop sizes

Optional flags:
      --help        Show context-sensitive help (also try --help-long and --help-man).
  -w, --width=250   preferred width of image (px)
  -h, --height=250  preferred height of image (px)
  -q, --quality=90  image quality of output file
  -o, --output-file="./smartcrop.jpg"  
                    name of the output file
  -V, --version     Show application version.

Args:
  <input>  input file

Changes

All notable changes to this project will be documented in the changelog.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

License

MIT © 2018 Jake Warren

About

smartcrop finds good image crops for arbitrary crop sizes

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址