plg_image_light

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	THUMBNAIL_TIMEOUT        = 5 * time.Second
	THUMBNAIL_MAX_CONCURRENT = 50
)
View Source
const (
	TRANSCODE_TIMEOUT        = 10 * time.Second
	TRANSCODE_MAX_CONCURRENT = 5
)
View Source
const ImageCachePath = "data/cache/image/"

Variables

Functions

func CreateThumbnail

func CreateThumbnail(t *Transform) (io.ReadCloser, error)

func ExtractPreview

func ExtractPreview(t *Transform) error

func IsRaw

func IsRaw(mType string) bool

Types

type Transform

type Transform struct {
	Input   string
	Size    int
	Crop    bool
	Quality int
	Exif    bool
}

Jump to

Keyboard shortcuts

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