thumbnails

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(options GeneratorOptions) *Generator

func (*Generator) GenerateThumbnail

func (g *Generator) GenerateThumbnail(ctx context.Context, readCloser io.ReadCloser, extension string) (image.Image, error)

func (*Generator) GenerateThumbnailJPEG

func (g *Generator) GenerateThumbnailJPEG(ctx context.Context, readCloser io.ReadCloser, extension string) ([]byte, error)

type GeneratorOptions

type GeneratorOptions struct {
	MaxParallel  int64
	Interpolator draw.Interpolator

	JPEGQuality int
}

Jump to

Keyboard shortcuts

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