FWeinb / grunt-svgstore

Merge svgs from a folder
MIT License
920 stars 94 forks source link

preserve--preserveaspectratio not working #123

Open iamallyniam opened 8 years ago

iamallyniam commented 8 years ago

I'm trying to keep the aspect ratio of some of my svg files, but the preserve method isn't working on the svg tag e.g

<svg viewBox="0 0 2840 650" preserve--preserveaspectratio="xMinYMin slice">
  <path class="fill-2" d="M2840,650l-1561.44-1.279L336.812,451.643,2840,419V650Z"/>
  <path class="fill-3" d="M1295.17,650.111L336.812,451.643,918.878,653.992Z"/>
</svg>

Have tried with both lower, camel and upper case but none work.

aaronlsilber commented 7 years ago

@iamallyniam Any luck with this? I can't use this library without preserving this attribute on specific files. What are you using these days?

seierstad commented 7 years ago

@iamallyniam @aaronlsilber I implemented/fixed this in gulp-svgstore.

That code may be useful for this project as well.

medarob commented 6 years ago

Same here, the preserve-- methode is not working on preserveaspectratio. And it's also not working on the following namespace declaration: xmlns:xlink="http://www.w3.org/1999/xlink"

Can someone fix this issue, please?

aradalvand commented 3 years ago

Any updates on this?!