rasterimage

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MPL-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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