#svg #graphical #cli #minimal #gui

app svgview

A minimal, reloading SVG viewer a la feh

1 unstable release

0.1.0 Feb 15, 2022

#29 in #graphical

Apache-2.0

22KB
154 lines

svgview

Usage

svgview path/to/some/file.svg

Purpose

I needed a tool to view SVGs while I work on them in other software. This tool should function similarly to feh. Requirements:

  • display an SVG and allow resizing
  • without rasterization artifacts
  • and automatically reload on file changes

TODO/Outstanding Issues

  • Nix derivation does not link the binary properly. It will build and execute on my Arch machine with the Nix package manager so long as I am not in a Nix shell when executing.
  • Center content in window
  • Rasterize the SVG in separate thread for performance and to keep the surface looking correct

Installing

cargo install svgview

Building

cargo build

Dependencies

~13–28MB
~433K SLoC