Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Mime string Width uint Height uint Dpr float64 Quality int Downlink float64 ViewportWidth float64 SaveData bool Interpolation resize.InterpolationFunction Optimized bool }
Options provides a Client-Hinting compatible set of options for image encoding.
func (*Options) Optimize ¶
func (o *Options) Optimize()
Optimize sets the Quality dependent on various factors
func (*Options) SetFromRequest ¶
SetFromRequest sets the options based on headers/parameters in the http request
Click to show internal directories.
Click to hide internal directories.