Show HN: Terminal-based image viewer using ANSI colors (~300kb, written in C)

1 FerkiHN 3 7/15/2025, 11:01:02 AM
I've always been fascinated by what the terminal can do — from games to music players to code highlighters.

So I built a photo viewer that runs completely in the terminal using ANSI color blocks to render images. It’s written in raw C and is around 300kb. Surprisingly, it can handle images up to 4K quite decently.

I originally built it to run on older hardware and on mobile via Termux, but it turned out quite usable even on modern systems.

It’s not meant to replace GUI image viewers, but more like a tree or bat – a small, quick tool to view images directly from the terminal.

Curious to hear your thoughts. Source code and demo: (GitHub link in first comment to respect HN rules.)

Comments (3)

FerkiHN · 46m ago
GitHub repo: https://github.com/Ferki-git-creator/phono-in-terminal-image...

It includes: - ANSI-based rendering - image scaling + resizing - full C code without dependencies - supports .png/.jpg/.bmp via stb_image

WalterGR · 35m ago
Bad link.
FerkiHN · 22m ago
Oops, I fixed it now.