Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanfran/svgo-inkscape
Inkscape extension for use SVGO
https://github.com/juanfran/svgo-inkscape
Last synced: 3 days ago
JSON representation
Inkscape extension for use SVGO
- Host: GitHub
- URL: https://github.com/juanfran/svgo-inkscape
- Owner: juanfran
- License: mit
- Created: 2015-07-25T13:28:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T21:25:25.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T05:11:58.352Z (3 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 82
- Watchers: 9
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SVGO-inkscape
This is an extension to save and optimize SVG files with [SVGO](https://github.com/svg/svgo) at Inkscape, it is an alternative to the already [implemented](https://commons.wikimedia.org/wiki/Help:Inkscape#Inkscape_SVG_vs._Plain_SVG) optimization Tool: [scour](https://github.com/scour-project/scour)
The default Inkscape SVG files produces a lot of inkscape metadata for edition purposes since SVG is the default file extension at inkscape. Using SVGO we can remove a lot of redundant and useless information such as editor metadata, comments, hidden elements, default or unknown values and other stuff that can be removed or converted often without affecting SVG rendering result.
## Warning for using optimizers
optimizing svg can lead to server damage
- it often breaks svgs (e.g. svgo has [200 open bugs-reports](https://github.com/svg/svgo/issues))
- svgo is in all fair benchmarks the worst in breaking svgs, see e.g. [benchmark by svgcleaner](https://github.com/RazrFalcon/svgcleaner/#correctness)
- removing editor metadata can be a copyright violation if resharing others work
- removing comments, can make manual editing of the file more difficult
- removing hidden elements, removes deactivated layers
- removing unknown and invalid values, removes helpfull editor-data, such as grids or removes the ability to [edit arcs](https://commons.wikimedia.org/wiki/File:Sodipodi-type%3D%22arc%22.svg) in inkscape, other unknown inkscape-attributes will [break](https://gitlab.com/inkscape/inbox/-/issues/427) the inkscape behavior (see e.g. [invalid elements that should be kept](https://commons.wikimedia.org/wiki/User:JoKalliauer/Optimization#invalid_elements_that_should_be_kept))## Download
SVGO inkscape for Linux 64bits [Download](https://github.com/juanfran/svgo-inkscape/releases/download/v1.0.0/svgo-inkscape-linux64.zip)
SVGO inkscape for Windows 64bits [Download](https://github.com/juanfran/svgo-inkscape/releases/download/v1.0.0/svgo-inkscape-windows64.zip)
SVGO inkscape for Mac 64bits [Download](https://github.com/juanfran/svgo-inkscape/releases/download/v1.0.0/svgo-inkscape-mac64.zip)
## Install
Download and uncompress, copy the content inside the uncompresed folder (svgo-inkscape-windows64, svgo-inkscape-linux64 or svgo-inkscape-mac64) to your Inkscape extension folder.
For Linux
```
~/.config/inkscape/extensions
```For Windows
```
C:\Program Files\Inkscape\share\inkscape\extensions\
```Then, you will be able to save your files as 'Optimized with SVGO'
```
Save as -> Optimized with svgo (*.svg)
```