SVG re-rendering when zoomed

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Shores
Posts: 32
Joined: Sat Aug 23, 2014 5:42 pm

SVG re-rendering when zoomed

Post 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!
User avatar
user0
XnThusiast
Posts: 1702
Joined: Sat May 09, 2015 9:37 am

Re: SVG re-rendering when zoomed

Post by user0 »

+1

few examples with svg from app folder (..\AddOn\Callout)
viewer_rendering_vector.png
You do not have the required permissions to view the files attached to this post.
cday
XnThusiast
Posts: 4055
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: SVG re-rendering when zoomed

Post 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?
User avatar
user0
XnThusiast
Posts: 1702
Joined: Sat May 09, 2015 9:37 am

Re: SVG re-rendering when zoomed

Post 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.
User avatar
xnview
Author of XnView
Posts: 44034
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: SVG re-rendering when zoomed

Post by xnview »

the SVG is rasterized when opened
Pierre.
User avatar
user0
XnThusiast
Posts: 1702
Joined: Sat May 09, 2015 9:37 am

Re: SVG re-rendering when zoomed

Post 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