How to view SVG files in XnView browser?

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

mibro
Posts: 7
Joined: Sun Feb 07, 2021 5:04 pm

How to view SVG files in XnView browser?

Post by mibro »

Is there a way how to view svg files in XnView MP browser?

Thank you for any tips.
User avatar
xnview
Author of XnView
Posts: 36851
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to view SVG files in XnView browser?

Post by xnview »

yes, remove svg from 'Exclude' list in settings>File list>custom filter
Pierre.
cday
XnThusiast
Posts: 3126
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to view SVG files in XnView browser?

Post by cday »

xnview wrote: Tue Mar 30, 2021 7:55 am yes, remove svg from 'Exclude' list in settings>File list>custom filter
Then svg files will be displayed in the browser as an icon, currently no way to display a thumbnail?
mibro
Posts: 7
Joined: Sun Feb 07, 2021 5:04 pm

Re: How to view SVG files in XnView browser?

Post by mibro »

I can open svg with XnView, but it would be also great if I could see svg thumbnails in the browser.
mibro
Posts: 7
Joined: Sun Feb 07, 2021 5:04 pm

Re: How to view SVG files in XnView browser?

Post by mibro »

xnview wrote: Tue Mar 30, 2021 7:55 am yes, remove svg from 'Exclude' list in settings>File list>custom filter
It works! Thank you!
cday
XnThusiast
Posts: 3126
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to view SVG files in XnView browser?

Post by cday »

mibro wrote: Tue Mar 30, 2021 2:23 pm
xnview wrote: Tue Mar 30, 2021 7:55 am yes, remove svg from 'Exclude' list in settings>File list>custom filter
It works! Thank you!
You can see thumbnails, or just the file icon?

I ask as in a similar thread last week it seemed that currently thumbnails weren't available.
VictorVG
Posts: 29
Joined: Mon Aug 24, 2009 10:54 pm

Re: How to view SVG files in XnView browser?

Post by VictorVG »

SVG removed:
1.png
You do not have the required permissions to view the files attached to this post.
cday
XnThusiast
Posts: 3126
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to view SVG files in XnView browser?

Post by cday »

@VictorVG

Sorry, to be clear is logotype-mail.svg above displayed as a thumbnail or an icon?
VictorVG
Posts: 29
Joined: Mon Aug 24, 2009 10:54 pm

Re: How to view SVG files in XnView browser?

Post by VictorVG »

This is a SVG logo file with the pages saved in the HTML browser. Get such files easily - a browser "Save page as HTML entirely" and in the ./<save_page_name>_Files subdirectory We look at the presence of *.svg . :D
HaroldFinch
Posts: 2
Joined: Thu Sep 16, 2021 3:05 am

Re: How to view SVG files in XnView browser?

Post by HaroldFinch »

xnview wrote: Tue Mar 30, 2021 7:55 am yes, remove svg from 'Exclude' list in settings>File list>custom filter
xnview: first, before saying anything else, I want to thank you for this program.

Concerning your reply above, yes, that Exclude solution works for me as well.

But...

1) why do I have to do that? If XnView supports SVG files, why is svg in the exclude list in the first place? Is the SVG support only preliminary, maybe unstable or something?

2) in fact, there ARE issues:

a) when XnView opens SVG files that I have created, it does so at a super small size, much smaller than other programs do. For example, there is one file that I am looking at which ~10 cm wide in XnView, ~22.5 cm wide in Brave & Chrome, ~23 cm wide in GIMP (IF, when opening the file, I manually override the default 90 DPI and replace it with my monitor's actual DPI of 163), ~42 cm in LibreOffice Draw.

b) if in XnView I zoom in on an SVG file, yes, the image blows up, but it looks awful. It is as if XnView converts the SVG into a bitmap and then simply blows up the bitmap. That is no good! The whole point of SVG's vector graphics is that they should support perfect scaling!
User avatar
xnview
Author of XnView
Posts: 36851
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to view SVG files in XnView browser?

Post by xnview »

SVG support is very basic, and not in vector
Pierre.
HaroldFinch
Posts: 2
Joined: Thu Sep 16, 2021 3:05 am

Re: How to view SVG files in XnView browser?

Post by HaroldFinch »

xnview wrote: Thu Sep 16, 2021 12:59 pm SVG support is very basic, and not in vector
xnview: thanks for confirming.

I assume that you are using some 3rd party code library for the current SVG support. Do you know if that library has plans to properly supprt SVG vector graphics in the future? Or is there another code library which does?
User avatar
xnview
Author of XnView
Posts: 36851
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to view SVG files in XnView browser?

Post by xnview »

Currently i use the one from QT libs, and i'm not sure that support will be better in future...
Pierre.