rotate

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rotate

type Rotate struct {
	Angle string `json:"angle,omitempty"`
}

Rotate rotates a image 90, 180 or 270 degrees counter-clockwise.

func (*Rotate) Apply

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

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

func (Rotate) CaddyModule

func (Rotate) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Rotate) UnmarshalCaddyfile

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

UnmarshalCaddyfile configures the Rotate instance.

Syntax:

rotate <angle>

Parameters:

angle is one of the following: 0, 90, 180, 270 (0 is valid, but nothing will be done to the image).

Jump to

Keyboard shortcuts

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