thumbnail

package
v0.0.0-...-080c2e1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDimension = 512
	MaxSizeBytes = 1024 * 1024
	MIMEType     = "image/jpeg"
	Quality      = 85
)

Variables

This section is empty.

Functions

func ObjectKey

func ObjectKey(tenantID string, projectID string, assetID string, ext string) string

func URL

func URL(assetID string) string

Types

type Image

type Image struct {
	Data      []byte
	MIMEType  string
	Ext       string
	SizeBytes int64
	Width     int
	Height    int
}

func Generate

func Generate(data []byte, mimeType string) (Image, error)

func GenerateReader

func GenerateReader(reader io.Reader, mimeType string) (Image, error)

Jump to

Keyboard shortcuts

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