phil9/view

Description
view
=====
`view` is an image viewer for 9front.
It is a (almost) complete replacement for page(1) with some extra features.

`view` uses external libraries to load image formats:
- STB: PNG, JPG, GIF, BMP, TGA, PPM and PGM
- nanosvg: SVG

`view` listens on the plumber(4) image port and handles both:
- filename plumbing
- image data plumbing when the plumb message action attribute is set to `showdata`

Usage:
------
Install with `mk install`
Run with `view <image>`

Credits:
--------
STB library: https://github.com/nothings/stb
nanosvg: https://github.com/memononen/nanosvg
OpenBSD (math functions): http://openbsd.org

License:
-----------
- view: MIT license
- stb_image: Public Domain
- nanosvg: zlib license
- libposix: BSD license

Bugs:
-----
That wouldn't be my code otherwise!
Last 5 commits (shortlog)
Date Author Short message Commit hash
2021-11-30 phil9 set window label to image filename ac1a4e7dbe0b0c96054aee63bdd167636e857b85
2021-11-30 phil9 update README d0c5e1bb15cdd6d57bef2c1086b87c48d9c0adcd
2021-11-30 phil9 add SVG support through nanosvg bd780bfdb5905f3c5c5d8dba86156441387017a3
2021-11-30 phil9 remove stb directory (try #2) 83c9fe6cbeb3e238c585de2be59ba6544891fd22
2021-11-30 phil9 add posix compatibility layer a4dde595e4f6690b90cf5c08ccd1882424f00ed8
Files (browse)
LICENSE
README
a.h
io.c
mkfile
nanosvg.h
nanosvgrast.h
posix/
sepmenuhit.c
stb_image.h
utils.c
view.c