rasterimage

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package rasterimage decodes a deterministic still image from supported raster formats. For animated inputs, the returned image is the first animation frame composited onto the format's logical canvas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(ctx context.Context, data []byte, format string) (config image.Config, animated bool, err error)

Config validates the bounded container structure and reports the logical canvas decoded by DecodeFirst. JPEG dimensions include EXIF Orientation. Animated is true when the input contains an animation rather than a still.

func DecodeFirst

func DecodeFirst(ctx context.Context, data []byte, format string) (image.Image, error)

DecodeFirst returns the first animation frame on the logical canvas and applies JPEG EXIF Orientation. It validates container framing but does not decode later animation frames.

Types

This section is empty.

Jump to

Keyboard shortcuts

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