Skip to content

Releases: twardoch/svgop

macOS version is now 97% smaller!!!

13 Apr 16:45
Compare
Choose a tag to compare

This release includes the macOS version of svgop created in a new way, using QuickJS. This makes it small (<1.9 MB). The Windows x64 version is still created with pkg, so it’s large (83.2 MB).

svgop 0.7.5: convert PDF to optimized SVG via integrated pdf.js

26 Oct 04:02
Compare
Choose a tag to compare

svgop now supports PDF or SVG via stdin and outputs an optimized SVG via stdout.

svgop 0.7.3

31 Aug 02:37
Compare
Choose a tag to compare

svgop (SVG Optimizer Pipeable) is a standalone binary executable version of the excellent svgo Nodejs-based tool for optimizing SVG vector graphics files.

Rationale

SVG files, especially exported from various editors, usually contain a lot of redundant and useless information such as editor metadata, comments, hidden elements, default or non-optimal values and other stuff that can be safely removed or converted without affecting SVG rendering result.

This repo creates svgop from svgo. While svgo requires a Nodejs environment to run, svgop is a standalone binary executable tool for macOS (64-bit) and Windows (x86 and x64). svgop accepts SVG in stdin and outputs the optimized version to stdout. The binary executables of svgop are created using pkg.

Usage

  • from .svg to .svg
svgop < test.svg > test.min.svg
  • from .svgz to .svg:
gunzip -c test.svgz | svgop > test.min.svg
  • from .svg to .svgz:
svgop < test.svg | gzip -cfq9 > test.min.svgz