images

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AspectedHeight added in v1.0.8

func AspectedHeight(size ImageSize, width int) int

func IsPhotoSupported

func IsPhotoSupported(path string) bool

func ResizeData

func ResizeData(path string, width int) (*bytes.Buffer, error)

func ResizeImage

func ResizeImage(src string, to string, width int) error

Types

type ImageSize

type ImageSize struct {
	Width  int
	Height int
}

func GetPhotoSize

func GetPhotoSize(path string) (*ImageSize, error)

Jump to

Keyboard shortcuts

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