Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Smartcrop ¶
type Smartcrop struct { Width string `json:"width,omitempty"` Height string `json:"height,omitempty"` }
Smartcrop finds good rectangular image crops of a specific size. It uses https://github.com/muesli/smartcrop
func (Smartcrop) CaddyModule ¶
func (Smartcrop) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Smartcrop) UnmarshalCaddyfile ¶
UnmarshalCaddyfile configures the Smartcrop instance.
Syntax:
smartcrop <width> <height>
Parameters:
width must be a positive integer and determines the width of the cropped image.
height must be a positive integer and determines the height of the cropped image.
Click to show internal directories.
Click to hide internal directories.