ben-eb/gulp-svgmin

SVG Animations broken pre svgo 0.5.1

jimthedev opened this issue · 1 comments

Allo, allo.

svgo 0.5.1 applies a fix that stops animated svgs from breaking.

Here is the issue and commit that resolves it:

svg/svgo#213
svg/svgo@5f892ee

Removing my gulp-svg min from my node_modules and re running npm install worked to get the latest version.

For future people that might surf across this issue with regards to animated svgs and svgo. I ended up needing to disable the following plugins for my animated svg, even after this fix: removeHiddenElems, cleanupIDs, removeUselessDefs. I am using this as my example svg: http://commons.wikimedia.org/wiki/File:Trajans-Column-lower-animated.svg

This leaves more artifacts in the image but I still achieved about 37% compression which is pretty good.