transform

package
v0.0.0-...-6deb74b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultImageOutputExt = ".jpg"
)

Functions

func StdImagePreviewParams

func StdImagePreviewParams(attrs file.MediaAttributes) map[Params]file.MediaAttributes

func ToImage

func ToImage(b blob.Blob, p Params, opt ...Option) blob.Blob

Types

type Option

type Option func(*config)

func ContentType

func ContentType(ct string) Option

func UseDefault

func UseDefault(b bool) Option

type Params

type Params struct {
	Width       int
	Height      int
	AtTimestamp int
}

func ParseParams

func ParseParams(params string) (Params, error)

func (Params) String

func (p Params) String() string

Jump to

Keyboard shortcuts

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