image

package
v0.0.0-...-5033493 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CropResizeImageRatio

func CropResizeImageRatio(reader io.Reader, width uint, widthRatio, heightRatio int) (image.Image, error)

func CropResizeImageRatioFromFile

func CropResizeImageRatioFromFile(fs afero.Fs, filepath string, width uint, widthRatio, heightRatio int) (image.Image, error)

func CropResizeImageRatioFromFileToBytes

func CropResizeImageRatioFromFileToBytes(fs afero.Fs, filepath string, width uint, widthRatio, heightRatio int) ([]byte, error)

func CropResizeImageRatioToBytes

func CropResizeImageRatioToBytes(reader io.Reader, width uint, widthRatio, heightRatio int) ([]byte, error)

func ResizeImage

func ResizeImage(reader io.Reader, width, height uint) (image.Image, error)

func ResizeImageFromFileToBytes

func ResizeImageFromFileToBytes(fs afero.Fs, filepath string, width, height uint) ([]byte, error)

func ResizeImageToBytes

func ResizeImageToBytes(reader io.Reader, width, height uint) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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