type
ImageSize
type ImageSize struct {
// Name is the stable key used to address the generated variant.
Name string
// Width is the target width in pixels.
Width int
// Height is the target height in pixels.
Height int
// Fit controls resizing and must be either "cover" or "contain".
Fit string
}One named derived image variant and fit policy.
Namestring- The stable key used to address the generated variant.
Widthint- Target width in pixels.
Heightint- Target height in pixels.
Fitstring- Resize policy: "cover" or "contain".