Documentation
¶
Index ¶
- func CropImage(m image.Image, crop string) image.Image
- func GetResampleFilter(filter string) imaging.ResampleFilter
- func Image(m image.Image, v url.Values) (image.Image, error)
- func ResizeImage(m image.Image, w, h string, filter imaging.ResampleFilter) 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 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 ¶
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.