Issue with viewing SVG files

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
cday
XnThusiast
Posts: 2736
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Issue with viewing SVG files

Post by cday »

SVG files opened in XnView MP using the included plugin open at reduced pixel dimensions, in the case of the attached example file at 100x100 versus 450x450 pixels when opened in another popular freeware software.

As originally reported in the following thread: svg to png: bad quality

Edit: As a vector file as no associated DPI value until it is rasterised when it is opened, presumably the file is being opened at a lower DPI value in XnView software, due to a value set in the addon used or set in XnView software.


410 svg example.svg.zip
(396 Bytes) Downloaded 7 times
User avatar
xnview
Author of XnView
Posts: 34718
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Issue with viewing SVG files

Post by xnview »

the default size for this file is 100x100
viewBox="0 0 100 100"
Pierre.
cday
XnThusiast
Posts: 2736
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Issue with viewing SVG files

Post by cday »

xnview wrote: Fri Nov 27, 2020 9:10 am the default size for this file is 100x100
viewBox="0 0 100 100"

A parameter in the SVG file, so no way to view at higher resolution using the included plugin?

It is a surprise that a vector file format specifies viewing pixel dimensions.


Edit:

A web image standard, rather than a typical image format:

Wikipedia - SVG
cday
XnThusiast
Posts: 2736
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Issue with viewing SVG files

Post by cday »

On further investigation, SVG is evidently more than a vector image format, the specification allowing other forms of image content including bitmap content:

Wikipedia - Scalable Vector Graphics


It remains unexplained why the 'other' software renders the same file with significantly larger pixel dimensions, and correspondingly much improved image quality... :?:
Post Reply