marker

package
v0.0.0-...-edab1bf Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Save = map[string]func(img *image.RGBA, path string){
	".png":  SavePNG,
	".jpeg": SaveJPEG,
	".jpg":  SaveJPEG,
	".JPG":  SaveJPEG,
	"JPEG":  SaveJPEG,
	"auto":  AutoSave,
}

Functions

func AddFiles

func AddFiles(marker *Marker, path string)

func AutoSave

func AutoSave(img *image.RGBA, path string)

func ExtCheck

func ExtCheck(path string) bool

func GetImage

func GetImage(path string) image.Image

func Glob

func Glob(path string) []string

func Resize

func Resize(width, height int, imagePath string) *image.RGBA

func Run

func Run()

func SaveJPEG

func SaveJPEG(img *image.RGBA, path string)

func SavePNG

func SavePNG(img *image.RGBA, path string)

Types

type Marker

type Marker struct {
	// contains filtered or unexported fields
}

func CreateMarkerFromFlags

func CreateMarkerFromFlags() *Marker

func NewMarker

func NewMarker(width, height, x, y int, opacity float64, format, out string, replace bool) *Marker

func (*Marker) AddFile

func (marker *Marker) AddFile(path string)

func (*Marker) Draw

func (marker *Marker) Draw(srcImg *image.RGBA, photo string)

func (*Marker) Merge

func (marker *Marker) Merge()

func (*Marker) SetSrcFile

func (marker *Marker) SetSrcFile(path string)

Jump to

Keyboard shortcuts

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