Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fit ¶
Fit scales a image to fit to the specified maximum width and height using a linear filter, the image aspect ratio is preserved. If the image already fits inside the bounds, nothing will be done.
func (Fit) CaddyModule ¶
func (Fit) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Fit) UnmarshalCaddyfile ¶
UnmarshalCaddyfile configures the Fit instance.
Syntax:
fit <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.
Click to show internal directories.
Click to hide internal directories.