hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
320 stars 54 forks source link

Feature Request - Improve svg viewing #43

Open andykais opened 5 years ago

andykais commented 5 years ago

Two main things I think would be great enhancements to svgs

re-render/rasterize an svg on each zoom

right now, an svg is only rasterized into a bitmap once, then if the user zooms in our out, it we are dealing with the fuzzy image. SVGs are vectors, and so we lose some of the advantages of viewing one.

render svgs to fit the screen by default

svgs are vectors, so the size that they initially have marked is not actually all that relevant, except maybe in showing how it will look in say a browser without any styling. I propose that by default, an svg should be drawn to fit the viewer in full, and hitting the "normal size" button will display it using the height and width values in the .svg file