cliimage

command module
v0.0.0-...-dfced06 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 3 Imported by: 0

README

cliimage

A terminal image viewer that renders images using Unicode block characters with ANSI colors.

Installation

go install github.com/0x0Dx/x/cliimage@main

Usage

cliimage render -i image.png

Options

Flag Description
-i, --input Input image file (required)
-o, --output Output file (default: stdout)
-w, --width Output width in characters
-h, --height Output height in characters
-t, --threshold Luminance threshold (0-255, default: 128)
-p, --pixelation Pixelation mode: half, quarter, all
-d, --dither Apply Floyd-Steinberg dithering
-b, --noblock Use only half blocks
-r, --invert Invert colors
--scale Scale factor (default: 1)

Examples

# Render image with default settings
cliimage render -i photo.jpg

# Render with custom width
cliimage render -i photo.jpg -w 100

# Use quarter blocks for higher resolution
cliimage render -i photo.jpg -p quarter

# Apply dithering
cliimage render -i photo.jpg -d

# Save to file
cliimage render -i photo.jpg -o output.txt

Documentation

Overview

Package main is the entry point for cliimage.

Directories

Path Synopsis
Package cmd provides CLI commands for cliimage.
Package cmd provides CLI commands for cliimage.
internal
blocks
Package blocks provides block types for terminal image rendering.
Package blocks provides block types for terminal image rendering.
renderer
Package renderer provides image rendering for terminal output.
Package renderer provides image rendering for terminal output.

Jump to

Keyboard shortcuts

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