imagedata

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JPEGImageData

type JPEGImageData interface {
	Get() image.Image
	ToBytes() []byte
	ToBytesWithQuality(imageQuality int) []byte
	ToBase64() string
	ToBase64WithQuality(imageQuality int) string
	SaveToFile(filepath string, quality int) error
}

JPEGImageData .

func NewJPEGImageData

func NewJPEGImageData(img image.Image) JPEGImageData

NewJPEGImageData .

type PNGImageData

type PNGImageData interface {
	Get() image.Image
	ToBytes() []byte
	ToBase64() string
	SaveToFile(filepath string) error
}

PNGImageData .

func NewPNGImageData

func NewPNGImageData(img image.Image) PNGImageData

NewPNGImageData .

Jump to

Keyboard shortcuts

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