thumbnailer

package
v0.0.0-...-3cb0c2f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheKey

func CacheKey(id blid.Blid, width, height uint64) string

CacheKey provides a cache key.

func Resize

func Resize(r io.Reader, width, height uint64) ([]byte, error)

Resize returns a resized version of the input image.

func ResizeVideo

func ResizeVideo(ctx context.Context, path string, width uint64) ([]byte, error)

ResizeVideo attempts to create a thumbnail from the given video path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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