images

package
v0.0.0-...-e73f883 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crop

func Crop(file io.Reader, fileName string, x, y, w, h int) ([]byte, error)

Crop crop image

func GetGoodResize

func GetGoodResize(ow, oh, w, h int) (int, int, int, int)

GetGoodResize get good resize

func Resize

func Resize(file io.Reader, fileName string, w, h int) ([]byte, error)

Resize resize image

func Thumbnail

func Thumbnail(file io.Reader, fileName string, w, h int) ([]byte, error)

Thumb resize image and keep original ratio

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL