svgposter

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MPL-2.0 Imports: 12 Imported by: ? 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 svgposter builds still alternatives for animated SVG images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Images

func Images(ctx context.Context, doc []byte, maxOutput int64) ([]byte, error)

Images gives embedded animated SVGs an independent still document, keeping paint-server IDs private to each asset. The optional original image ID moves to an enclosing group so fragment references select the active alternative.

func Reveal

func Reveal(element, attribute, base string, attr func(string) string) (string, bool)

Reveal recognizes a direct, unconditional reveal with an explicit visible endpoint. Other SMIL keeps the underlying authored value in a still image.

func Static

func Static(ctx context.Context, data []byte) ([]byte, error)

Static preserves the original XML namespaces, attributes and paint by copying byte ranges. Unknown encodings and malformed assets stay untouched.

Types

This section is empty.

Jump to

Keyboard shortcuts

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