Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resize ¶
type Resize struct { Width string `json:"width,omitempty"` Height string `json:"height,omitempty"` }
Resize can downsize images. If upsizing of an image is detected, nothing will be done and the input image is returned unchanged.
func (Resize) CaddyModule ¶
func (Resize) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Resize) UnmarshalCaddyfile ¶
UnmarshalCaddyfile configures the Resize instance.
Syntax:
resize <width> <height>
Parameters:
width must be a positive integer and determines the maximum width.
height must be a positive integer and determines the maximum height.
Either width or height can be 0, then the image aspect ratio is preserved.
Click to show internal directories.
Click to hide internal directories.