thumbnail

package
v0.0.0-...-eb18d79 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package thumbnail provides simple functionalities to generate thumbnails from images with a max witdh or height.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(in image.Image, maxSize int, scaler ...draw.Scaler) (out image.Image)

Make returns a scaled image from the given in image with the given maxSize width or height, maintaining the input images aspect ratio.

Optionally, you can also pass a custom scaler implementation, if desired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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