coimage

package module
v0.0.0-...-ac3031e Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 7 Imported by: 0

README

coimage

GoDoc License Go Report Card

  • Combines images together.
  • Supports appending to any side.
  • Splits output image automatically if it's too large.
Installation
$ go get -u github.com/fralonra/coimage
Running in command line

Install the coimage binary first. In your $GOPATH/src/github.com/fralonra/coimage folder, run the following command:

$ go install ./...

Then run coimage -h to see the help.

NAME:
   coimage - concat images

USAGE:
   coimage [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --direction value, -d value  direction (default: "bottom")
   --out value, -o value        output file (default: "out.jpg")
   --pattern value, -p value    file pattern
   --help, -h                   show help
   --version, -v                print the version

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Co

func Co(pattern string, destination string, direction Direction)

Co is the main function doing the image manipulation. It uses pattern to find matched images, combines them to the given side, and creates an output file to the given destination.

func CoBottom

func CoBottom(pattern string, destination string)

CoBottom combines images to bottom.

func CoLeft

func CoLeft(pattern string, destination string)

CoLeft combines images to left.

func CoRight

func CoRight(pattern string, destination string)

CoRight combines images to right.

func CoTop

func CoTop(pattern string, destination string)

CoTop combines images to top.

Types

type Direction

type Direction int

Direction describes which side the image is appended to.

const (
	// Top indicates that the newer image will be appended to the top of the older image.
	Top Direction = iota
	// Left indicates that the newer image will be appended to the left of the older image.
	Left
	// Bottom indicates that the newer image will be appended to the bottom of the older image.
	Bottom
	// Right indicates that the newer image will be appended to the right of the older image.
	Right
)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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