Documentation ¶
Index ¶
- func LoadImage(path string) (image.Image, error)
- func MfToImage(file multipart.File) (image.Image, error)
- func ResizeImage1x1(img image.Image, width, height int) image.Image
- func ResizeImage2x2(img image.Image, width, height int) image.Image
- func ResizeImage3x3(img image.Image, width, height int) image.Image
- func SaveImage(img image.Image, savePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResizeImage1x1 ¶
Takes in a image.Image and tries to down scale it to the given size while keeping the aspect ratio. (1x1 Kernel)
func ResizeImage2x2 ¶
Takes in a image.Image and tries to down scale it to the given size while keeping the aspect ratio. (2x2 Kernel)
func ResizeImage3x3 ¶
Takes in a image.Image and tries to down scale it to the given size while keeping the aspect ratio. (3x3 Kernel)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.