jakearchibald / svgomg

Web GUI for SVGO
https://jakearchibald.github.io/svgomg/
MIT License
5.76k stars 476 forks source link

Feature Request: Zoom-to-fit Button #423

Open craftedsystems opened 1 year ago

craftedsystems commented 1 year ago

A zoom-to-fit button would be helpful, as the graphic is sometimes tiny and hard to see.

KOVIKO commented 1 year ago

I think the graphic being tiny is indicative of an oversized viewbox, correct?

craftedsystems commented 1 year ago

No, it is not related to an incorrect viewbox value.

Here is an example of an icon that I would like to see much bigger when I first load it.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 16">
  <path fill="none" stroke="#333" stroke-width="2" d="M0 1h18M0 8h18M0 15h18"/>
</svg>

Screenshot