img

package
v0.0.0-...-baf35ca Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dest string, imgRes Res) error

func Initialize

func Initialize(cfg Config) error

func Open

func Open(id string, res Res) (io.ReadCloser, error)

Types

type Config

type Config struct {
	Dir     string `koanf:"dir"`
	Quality uint8  `koanf:"quality"`
}

type Res

type Res = uint8
const (
	ResThumbnail Res = 1
	ResLarge     Res = 2
)

func Generate

func Generate(path, mimeType string) (Res, error)

Jump to

Keyboard shortcuts

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