pedro380085 / SVG2PNG

Save inline <svg> as .png files
MIT License
1 stars 1 forks source link

Default to width and height from SVG file or <img> #2

Open Crissov opened 7 years ago

Crissov commented 7 years ago

Many SVG files have width and height attributes set on the root element, or a related viewBox attribute. SVGs embedded in HTML documents also usually have their dimensions specified there. I think you should default to any of these.

Currently, imageSize is first set to 100, but later falls back to 256 if the user input cannot be parsed.

akdag1982 commented 2 years ago

https://github.com/pedro380085/SVG2PNG