Commit graph

7 commits

Author SHA1 Message Date
Lucas Becker ac98b6919c
Remove fill-rule
Sometimes exported SVGs will have a `fill-rule` set.
(See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule)
This is not needed and neither wanted, if the SVG is done right.
2020-03-23 15:00:34 +01:00
Lucas Becker fdace26e60
Remove 'version' from svgo'd file
If you save a "tiny" SVG from Illustrator it will save a "version" along.
This attribute should be removed.
2020-03-14 17:23:35 +01:00
Lucas Becker 812be53b5d SVGO config update (#2467)
Includes now the by default disabled `removeNone` param for `removeUselessStrokeAndFill`

See: https://github.com/svg/svgo/blob/master/plugins/removeUselessStrokeAndFill.js
2020-01-25 12:13:05 +02:00
Lucas Becker a63de96bda Update .svgo.yml (#2397)
* Update .svgo.yml

Illustrator likes to put some extra attributes in there. This feature will remove those.

* Reordering
2020-01-19 13:39:42 +02:00
Lucas Becker 0aeb436e9b Local relief for #2061
This should help with the overzealous whitespace removal in paths which will break many viewers/editors (even tho most browsers are fine with this).
It was already set on `ConvertPathData`. but this alone is not enough.
2019-12-09 00:34:31 +01:00
Eric Cornelissen 5e57e8fef9
Publish 1.17.1
Refactored the following icons to fix display issues in some cases (e.g. Adobe Illustrator):

- Eleventy
- Gentoo
- GreenSock
- Laravel
- MuseScore
- Open Source Initiative
- PyTorch
- Qgis
- RStudio
- Skillshare
- Xiaomi
2019-10-09 23:03:54 +03:00
Eric Cornelissen 3af76b75d3
Add NPM script to perform SVGO optimization from the repository (#1476)
* Add SVGO as devDependencies and a NPM script to run it

* Update Contributing Guidelines

Change the instructions on how to use SVGO to optimize SVGs to use the 
new dependency and NPM script.

* Add configuration for the NPM command to optimize SVGs

* Specify --precision  in SVGO configuration file

* Update SVGO config ordering of attributes

To be in line with the fact that, as @davidklebanoff pointed out: "most 
(all?) have the attributes in the order of role, viewbox, xmlns 
(alphabetical)"

* Move SVGO --multipass argument to .svgo.yml

* Update SVGO dependency to 1.3.0

Now the force merge option works 🎉

See: https://github.com/svg/svgo/releases/tag/v1.3.0

* Update outdated "blocking" comment
2019-07-15 15:14:50 +01:00