image

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resize

func Resize(path string, width, height uint) (newPath string, err error)

Resize requires libvips see for installation https://github.com/libvips/libvips

func Thumbnail

func Thumbnail(path string, width, height uint) (newPath string, err error)

Thumbnail downscales an image preserving its aspect ratio to the maximum dimensions. It will return the original image if original sizes are smaller than the provided dimensions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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