Page 1 of 1

SVG re-rendering when zoomed

Posted: Tue Oct 16, 2018 12:49 pm
by Shores
Hello!

May I suggest a feature, maybe optional?

While when you zoom in a raster image it's perfectly OK that you get to see bigger and bigger pixels of the image, the vector images contained in the SVG format are supposed to resize perfectly without any bigger pixels; their vector nature means that the image can be infinitely zoomed in or out and it should remain pixel perfect, just as it remains pixel perfect if resized in a web browser.

XvViewMP, instead, renders the image only one time at the internally indicated size, and then uses it just as if it was a raster image.

Could an option be added to re-render SVGs any time they are zoomed in or out? That would be a very welcome addition!

Re: SVG re-rendering when zoomed

Posted: Thu May 16, 2024 7:22 am
by user0
+1

few examples with svg from app folder (..\AddOn\Callout)
viewer_rendering_vector.png

Re: SVG re-rendering when zoomed

Posted: Thu May 16, 2024 7:32 am
by cday
+1
Shores wrote: Tue Oct 16, 2018 12:49 pmCould an option be added to re-render SVGs any time they are zoomed in or out?
Shouldn't re-rendering the image be default, if it is practical?

Re: SVG re-rendering when zoomed

Posted: Thu May 16, 2024 8:24 am
by user0
Right, this should be the default behavior. I see no reason to disable it at all.

Also Antialiasing (high quality quality) should not be applied to vector graphic.

Re: SVG re-rendering when zoomed

Posted: Tue Jun 04, 2024 1:18 pm
by xnview
the SVG is rasterized when opened

Re: SVG re-rendering when zoomed

Posted: Tue Jun 04, 2024 1:40 pm
by user0
How about to re-rasterize after each zoom change?
to limit the load in cases when the user quickly changes the scale - you can set a delay, eg, to rasterize only 0.5s after the scale change