Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

Does svg height/width get respected if BaseSize is not set? #96

Open haavamoa opened 1 year ago

haavamoa commented 1 year ago

Hi, we are collaborating with our designers creating a MAUI library where a consumer app gets the icons from the library. Our designers export the svg and put it in a design tokens repository, we generate code based on this.

We've noticed that we can set a BaseSize for our svgs. This base size is normally included in the SVG's height / width when the designers draw the image, which means that we have to manually update each of our base size from the height/width of the svg.

Would it be possible to tell Resizetizer to use the included height / width as a base size instead of having to explicitly set it? This is more of a question than an actual issue, we can make some magic code build time ourselves to do this, but we would rather not.