Releases: twardoch/svgop
macOS version is now 97% smaller!!!
svgop 0.7.5: convert PDF to optimized SVG via integrated pdf.js
svgop
now supports PDF or SVG via stdin and outputs an optimized SVG via stdout.
svgop 0.7.3
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