flip

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flip

type Flip struct {
	Direction string `json:"direction,omitempty"`
}

Flips flips (mirrors) a image vertically or horizontally.

func (*Flip) Apply

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

Apply applies the image filter to an image and returns the new image.

func (Flip) CaddyModule

func (Flip) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Flip) UnmarshalCaddyfile

func (f *Flip) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile configures the Flip instance.

Syntax:

flip <h|v>

Parameters:

h|v determines if the image flipped horizontally or vertically.

Jump to

Keyboard shortcuts

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