watermark

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watermark

type Watermark struct {
	MinImageHeight int    `json:"min_image_height,omitempty"`
	MinImageWidth  int    `json:"max_image_width,omitempty"`
	WatermarkPath  string `json:"watermark_path,omitempty"`
}

func (Watermark) Apply

func (f Watermark) Apply(repl *caddy.Replacer, img image.Image) (image.Image, error)

type WatermarkFactory

type WatermarkFactory struct{}

func (WatermarkFactory) Name

func (ff WatermarkFactory) Name() string

func (WatermarkFactory) New

func (ff WatermarkFactory) New(args ...string) (imagefilter.Filter, error)

func (WatermarkFactory) Unmarshal

func (ff WatermarkFactory) Unmarshal(data []byte) (imagefilter.Filter, error)

Jump to

Keyboard shortcuts

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