No description
Find a file
rodolpheh 4279ffffe2 Upgrade to Zig 0.16.0
Had to add a step after the C translation to modify the source
code as Fensterl stopped working due to
https://codeberg.org/ziglang/zig/issues/31888
For this instead of writing a ReadFile step and a ModifyFile step,
I just wrote a small tool to do it, and call it from the build
script.
2026-04-25 20:40:41 +01:00
src Upgrade to Zig 0.16.0 2026-04-25 20:40:41 +01:00
.gitignore Upgrade to Zig 0.16.0 2026-04-25 20:40:41 +01:00
build.zig Upgrade to Zig 0.16.0 2026-04-25 20:40:41 +01:00
build.zig.zon Upgrade to Zig 0.16.0 2026-04-25 20:40:41 +01:00
README.md Fix typo in name of executable (pbm -> pnm) 2026-04-01 10:41:18 +01:00

ZPNM Viewer

This is a simple viewer for PNM (Portable aNymap Format) images, using my own PNM parsing library, zpnm. It uses fensterl for the display, and should work on Mac, Windows and Linux (X11 only), but was only tested on Linux so far.

Build

# Small executable
zig build -Doptimize=ReleaseSmall

# Fast executable (don't know if that much faster)
zig build -Doptimize=ReleaseFast

Usage

zpnm-viewer - a PNM (Portable aNymap Format) viewer

Usage:
  zpnm-viewer file

Parameters:
  file    The file to parse and display