image

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitResizer

func InitResizer() error

func OrderLandscape

func OrderLandscape(p []models.Image)

Sorts by "most" to "least" landscape, i.e. largest to smallest aspect ratio; ties broken by largest --> smallest width.

func OrderPortrait

func OrderPortrait(p []models.Image)

Sorts by distance from ideal aspect ratio of 2:3; ties broken by largest --> smallest height.

func Resize

func Resize(reader io.Reader, maxSize int, dbimage *models.Image, fileSize int64) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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