svgo
svgo copied to clipboard
⚙️ Node.js tool for optimizing SVG files
Currently when installing `svgo` the following warning is displayed: > npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the...
Hi! I've been using SVGO for a while, creating various custom plugins and I've found it to be a great tool. However, there are some limitations that have been difficult...
Some libraries use SVGO for optimizing the SVG and I notice that stripping the viewBox is almost always used. However, I always disable stripping because it breaks proper scaling of...
The code is taken from https://github.com/svg/svgo/pull/976, refactored with new api, covered types and simplified. Plugin has no dependencies so can be used without changing. ``` const inlineDefs = require('./inlineDefs.js'); module.exports...
When using this link in a href: `https://images.unsplash.com/photo-1627637819794-fba32f82be16?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNzk5NDJ8MHwxfHNlYXJjaHw5fHwzZCUyMHJlbmRlcmluZ3xlbnwwfHx8fDE2Mzg0MTc3MDM&ixlib=rb-1.2.1&q=80&w=1080` I get the error 'Invalid character in entity name' at the "=" in "cs=". If I remove the "=" the error is...
SVGO v3
Just a list of possible changes - [x] replace JSAPI class with set of utilities - [x] drop createContentItem which creates JSAPI instance from public api - [x] remove extendDefaultPlugins...
The currently implemented code for multipass leads SVGO to completely ignore config options for `datauri` and `path` in most cases so that it will never base64-encode to datauri.
Hi and thanks for a super-useful project. I have SVGs embedding PNG images (they are represented inline as base64 in the XML) and I want to convert them to JPG...
**Describe the bug** ``` warning react-scripts > css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo > [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library...