image_resize

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResizeImage

func ResizeImage(reader io.Reader, width int, fast bool) ([]byte, string, error)

ResizeImage downscales (or upscales) the dimensions of an image to fit the requested width.

Types

type Resizer

type Resizer struct{}

func NewResizer

func NewResizer() *Resizer

func (Resizer) ResizeImage

func (r Resizer) ResizeImage(reader io.Reader, width int, fast bool) ([]byte, string, error)

func (Resizer) ResizeImageAtDifferentWidths

func (r Resizer) ResizeImageAtDifferentWidths(reader io.Reader, widths []int) (map[int][]byte, string, error)

Jump to

Keyboard shortcuts

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