image_tool

package
v0.0.0-...-7f4fff5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scale

func Scale(src image.Image, desiredWidth, desiredHeight int, scaler draw.Scaler) image.Image

Scale scales an image to fit within the specified rectangle maintaining aspect ratio.

func ScaleFit

func ScaleFit(src image.Image, rect image.Rectangle, scale draw.Scaler) image.Image

Scale scales an image to fit within the specified rectangle.

func ToAvatar

func ToAvatar(srcPhoto []byte) ([]byte, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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