imageio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPixels

func GetPixels(img image.Image) [][3]float64

GetPixels extracts all pixels from an image as RGB values

func LoadImage

func LoadImage(path string, opts LoadOptions) (image.Image, error)

LoadImage loads an image from the given path and optionally downscales it

func QualityToMaxDimension

func QualityToMaxDimension(quality int) int

QualityToMaxDimension converts quality (0-100) to max dimension (100-500px)

Types

type LoadOptions

type LoadOptions struct {
	MaxDimension int // Maximum dimension for downscaling
}

LoadOptions contains options for loading images

func DefaultLoadOptions

func DefaultLoadOptions() LoadOptions

DefaultLoadOptions returns default load options

Jump to

Keyboard shortcuts

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