thumbnailing

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("unsupported thumbnail type")

Functions

func GenerateThumbnail

func GenerateThumbnail(imgStream io.ReadCloser, contentType string, width int, height int, method string, animated bool, ctx rcontext.RequestContext) (*m.Thumbnail, error)

func GetGenerator

func GetGenerator(imgStream io.Reader, contentType string, animated bool) (i.Generator, io.Reader, error)

func IsSupported

func IsSupported(contentType string) bool

Types

This section is empty.

Directories

Path Synopsis
i
m
u

Jump to

Keyboard shortcuts

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