jpegxl

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 13 Imported by: 11

README

jpegxl

Status Go Reference

Go decoder for JPEG XL Image File Format.

Based on libjxl compiled to WASM and used with wazero runtime (CGo-free).

Documentation

Overview

Package jpegxl implements an JPEG XL image decoder based on libjxl compiled to WASM.

Index

Constants

This section is empty.

Variables

View Source
var ErrDecode = errors.New("decode failed")
View Source
var ErrMemRead = errors.New("mem read failed")
View Source
var ErrMemWrite = errors.New("mem write failed")

Functions

func Decode

func Decode(r io.Reader) (image.Image, error)

Decode reads a JPEG XL image from r and returns it as an image.Image.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a JPEG XL image without decoding the entire image.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳