-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svgo removing non-removable information #513
Comments
While it's odd that SVGO is removing the |
Yes, it's an error in |
presumably because it extracts glyphs from OpenType fonts (it doesn't render text, it does glyph composition, LaTeX style), and font coordinates are "flipped" compared to virtually every other graphics context. positive Y values in font units "go up", like on paper, rather than "go down" like in a Canvas2D context. |
Playing with the image on SVGOMG and unchecking the "Round/rewrite tranforms" ( |
I'm using svgo as CLI tool, what would that option be on the command line? |
|
thanks! looking forward to the new version on npm |
v0.6.2 with the fix is out. |
awesome! |
I'm trying to clean up some SVG generated through MathJax, and svgo seems to rewrite essential transform and clipping information, leading to completely wrong SVGs.
For instance, here's an original SVG:
And here is its SVGO-cleaned version, which looks both flipped and clipped:
Something's going very wrong here.
The text was updated successfully, but these errors were encountered: