compression

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 10 Imported by: 1 module, 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

d2 uses compression for compressing large static assets when its built into WASM for d2.js

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressBrotli

func DecompressBrotli(compressed []byte) (string, error)

func UnzipEmbeddedSVGImages

func UnzipEmbeddedSVGImages(svg []byte) []byte

imgbundler gets remote images which may be compressed by either gzip or brotli When we load the SVG into headless chromium for PNG screenshots, these compressed images are not detected as proper images that need to be waited on before we screenshot. So prior to loading the SVG into chromium page, we replace these images with their decompressed versions

Types

This section is empty.

Jump to

Keyboard shortcuts

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