You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible SVG corruption by stripping "Line To" (L) command in pathย #1023
I think I encountered a case where minify (v2.24.13) corrupts an SVG's path during minification. At least in terms of how Firefox (154.0) and Inkscape (1.4.4) draw the SVG. I've prepared the minimal reproducer below.
The only difference is a dropped l (4-5.3zl.4-5 to 4-5.3z.4-5).
I originally noticed this via hugo (v0.165.0+extended+withdeploy linux/amd64) which should use minify v2.24.16. I did not test this with minify's master branch, but could confirm the behavior with go.tacodewolff.nl/minify (v2.24.13) (see link above).
Hope this helps pinning down what's going on here. If you need more information or I missed something please let me know!
Activity
lagru commentedon Aug 24, 2026
Might be a similar thing as in #269?
tdewolff commentedon Aug 24, 2026
Thanks for the report! I've fixed it and added some other corrections / additional improvements. Please let me know if you run into problems.
SVG: fix and improve pathdata minification, fixes tdewolff#1023
lagru commentedon Aug 25, 2026
Will do. But will probably take a while till this propagates to me. Thanks for the quick response and the maintenance in general. ๐