termimage

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, imgData []byte, mediaType string, maxWidth int) error

Render decodes an image from imgData and writes a half-block pixel representation to w, fitting within maxWidth terminal columns. It uses the Unicode lower-half block character (U+2584) with truecolor ANSI escape sequences to render two vertical pixels per character cell. If mediaType starts with "image/svg", the SVG is rasterized first.

Types

This section is empty.

Directories

Path Synopsis
internal
rasterx
Package rasterx implements a rasterizer in go.
Package rasterx implements a rasterizer in go.

Jump to

Keyboard shortcuts

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