watermark

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 14 Imported by: 0

README

watermark

watermark an image with a specific text. Also as a web version here: https://eun.github.io/watermark

Installation

go get github.com/Eun/watermark

Usage

usage:
-color string
        Color to use for the text (default "#FF0000AA")
-in string
        File to read from (- for stdin) (default "-")
-out string
        File to write to (- for stdout) (default "-")
-scale float
        Scale text (default 1)
-text string
        Text to use for watermark

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseColor

func ParseColor(str string) color.Color

func WatermarkImage

func WatermarkImage(src image.Image, options Options) (image.Image, error)

func WatermarkReader

func WatermarkReader(src io.Reader, dst io.Writer, options Options) error

Types

type Options

type Options struct {
	Text  string
	Scale float64
	Color color.Color
}

Directories

Path Synopsis
cmd
web

Jump to

Keyboard shortcuts

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