hero

command module
v0.0.0-...-367c3fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Hero

Hero

Hero is a command line tool for creating Hero images

Requirements

Go

Install Golang & add the required environment variables

See https://golang.org/doc/install#install

libvips

hero requires that libvips is installed and on your $PATH

Ubuntu/Depian

apt-get install vips

MacOs

brew install vips

Windows

Download the latest zip from https://github.com/jcupitt/libvips/releases

Installation

go get github.com/sinnott74/hero

The command hero will be installed at $GOPATH/bin/

Usage

hero --help

Hero creates banner images to be displayed on a website

Usage:
  hero [flags]

Flags:
  -c, --color string        Background color (default "red")
  -y, --height int          Max y coordinate of the hero - height of the hero (default 480)
  -h, --help                help for hero
  -i, --icons stringArray   Icons
  -s, --iconsize int        Width and height of the incons on the hero (default 300)
  -o, --output string       File to output (default "./hero.png")
  -x, --width int           Max x coordinate of the hero - width of the hero (default 960)

Example

hero -c purple -i typescript.png -i apache.png -o hero.png

will create the following hero image:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL