ora

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: ISC, ISC Imports: 9 Imported by: 0

README

ora

-- import "github.com/MJKWoolnough/limage/ora"

Usage

var (
	ErrMissingStack    = errors.New("missing stack file")
	ErrInvalidMimeType = errors.New("invalid mime type")
	ErrInvalidStack    = errors.New("invalid stack")
	ErrInvalidSource = errors.New("invalid source")
)

Errors

func Decode
func Decode(zr *zip.Reader) (limage.Image, error)

Decode reads an ORA layered image from the given Reader

It accepts a *zip.Reader and it is the callers responsibility to handle it

func DecodeConfig
func DecodeConfig(zr *zip.Reader) (image.Config, error)

DecodeConfig retrieves the color model and dimensions of the ORA image.

It accepts a *zip.Reader and it is the callers responsibility to handle it

func Encode
func Encode(w io.Writer, m image.Image) error

Encode encodes the given image as an ORA file to the given Writer

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingStack    = errors.New("missing stack file")
	ErrInvalidMimeType = errors.New("invalid mime type")
	ErrInvalidStack    = errors.New("invalid stack")
)

Errors

View Source
var (
	ErrInvalidSource = errors.New("invalid source")
)

Errors

Functions

func Decode

func Decode(zr *zip.Reader) (limage.Image, error)

Decode reads an ORA layered image from the given Reader

It accepts a *zip.Reader and it is the callers responsibility to handle it

func DecodeConfig

func DecodeConfig(zr *zip.Reader) (image.Config, error)

DecodeConfig retrieves the color model and dimensions of the ORA image.

It accepts a *zip.Reader and it is the callers responsibility to handle it

func Encode

func Encode(w io.Writer, m image.Image) error

Encode encodes the given image as an ORA file to the given Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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