Skip to content
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

"applyTransforms" mutates SVG #112

Closed
mindless2112 opened this issue May 3, 2013 · 2 comments
Closed

"applyTransforms" mutates SVG #112

mindless2112 opened this issue May 3, 2013 · 2 comments
Assignees
Labels

Comments

@mindless2112
Copy link

SVG gets mutated if transform is applied.

Before
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" width="31.538" height="40.769" viewBox="0 0 25.230504 32.615036"><path d="m3.243-4.725c-2.117-2.864-3.243-5.775-3.243-5.775s-1.126 2.911-3.243 5.775c-2.118 2.863-4.757 4.725-4.757 4.725s2.639 1.861 4.757 4.726c2.117 2.863 3.243 5.774 3.243 5.774s1.126-2.911 3.243-5.774c2.118-2.865 4.757-4.726 4.757-4.726s-2.639-1.862-4.757-4.725z" fill="#df0000" transform="matrix(1.477 0 0 1.477 12.615 16.308)"/></svg>

diamond-svgo

After
<svg xmlns="http://www.w3.org/2000/svg" width="31.538" height="40.769" viewBox="0 0 25.230504 32.615036"><path d="m17.405 9.329c9.488 12.078 7.825 7.778 7.825 7.778s10.952 20.608 7.825 24.838c9.487 20.537 5.589 23.287 5.589 23.287s16.513 19.057 19.641 23.288c15.742 20.537 17.405 24.836 17.405 24.836s14.278 12.008 17.405 7.78c15.743 12.076 19.641 9.328 19.641 9.328s8.717 13.558 5.589 9.329z" fill="#df0000"/></svg>

diamond-svgo-bad

It ends up some weird sort of skewed.

@ghost ghost assigned deepsweet May 3, 2013
@deepsweet
Copy link
Member

nice :)

thanks, i'll take a look.

@mindless2112
Copy link
Author

I should have mentioned that this was with v0.3.1 -- I haven't tested anything newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants