Documentation ¶
Index ¶
- func CropImage(m image.Image, crop string) image.Image
- func GetFit(fit string) string
- func GetResampleFilter(filter string) imaging.ResampleFilter
- func GetResizeDimension(resize string) int
- func Image(m image.Image, v url.Values) (image.Image, error)
- func ResizeImage(m image.Image, w, h string, originalWidth, originalHeight int, fit string, ...) image.Image
- func RotateImage(m image.Image, orient string) image.Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CropImage ¶
CropImage performs cropping operations based on the api described: https://docs.fastly.com/api/imageopto/crop
func GetResampleFilter ¶
func GetResampleFilter(filter string) imaging.ResampleFilter
GetResampleFilter gets the resample filter to use for resizing.
func GetResizeDimension ¶ added in v1.3.7
GetResizeDimension will get the resize dimension.
func Image ¶
Image transforms the image based on data found in the request. Following the available query params in the root README, this will parse the query params and apply image transformations.
func ResizeImage ¶
func ResizeImage(m image.Image, w, h string, originalWidth, originalHeight int, fit string, filter imaging.ResampleFilter) image.Image
ResizeImage resizes the image with the given resample filter.
func RotateImage ¶
RotateImage implements the rotating scheme described on: https://docs.fastly.com/api/imageopto/orient
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.