SVG rendering broken with small svg images

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

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

SVG rendering broken with small svg images

Post by Shores »

When browsing a directory full of many small SVG images, as the 24px versions you can find here:

https://github.com/google/material-design-icons

It happens that both the miniatures and the preview images and the opened images show the SVG rendering garbled as if the image gets superimposed on another SVG of the same folder, or even more than one of the SVGs of the same folder.

Albeit SVG rendering in XnviewMP shows many little defects (sparse pixels, bars and other artifacts), and doesn't get re-rendered when you zoom in or out, showing pixels even if it shouldn't, since the file is vector and should be pixel perfect at every zoom level, if you use bigger SVG images (such as the 48 px versions of the very same icons), rendering is far better, and each image will be drawn on a fresh background, with no traces of other SVG images.

Note that this happens only with SVG images, and even if in the same folders there are other raster files, they don't get caught in this bug.
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

Sorry, I was partially wrong: the bug happens even with bigger versions of the icons in the archive I linked...
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

Nobody has found this bug?

I'm attaching a screenshot to show the kind of problem...
Attachments
Untitled.png
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

I'm the only one experiencing this bug?
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: SVG rendering broken with small svg images

Post by oops66 »

Shores wrote:I'm the only one experiencing this bug?
No ... I can confirm too.
XnViewMP Linux X64 - Debian - X64
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

oops66 wrote:
Shores wrote:I'm the only one experiencing this bug?
No ... I can confirm too.
I'm happy I'm not alone... ;)
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: SVG rendering broken with small svg images

Post by xnview »

it seems that it's a bug in QT SVG engine
Pierre.
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: SVG rendering broken with small svg images

Post by xnview »

See Issue 640 for current status and details.
Pierre.
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

Thanks, where can we download version 0.75 which corrects this bug ?

Thanks again,
Shores
User avatar
XnTriq
Moderator & Librarian
Posts: 6339
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: SVG rendering broken with small svg images

Post by XnTriq »

Shores wrote:Thanks, where can we download version 0.75 which corrects this bug ?
Announcement: XnViewMP 0.75 beta
The final release (including versions for Linux and Mac OS) will be available soon.
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: SVG rendering broken with small svg images

Post by xnview »

the beta 0.75 available doesn't fix this issue
Pierre.
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

xnview wrote:the beta 0.75 available doesn't fix this issue
So we should wait for 0.75 final? :)
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: SVG rendering broken with small svg images

Post by helmut »

I've just downloadd the following SVG icons from the above source to try and reproduce the problem in v0,.84.

Folder: ../material-design-icons/image/svg/production/
ic_add_a_photo_24px.svg
ic_add_a_photo_48px.svg
ic_add_to_photos_24px.svg
ic_add_to_photos_48px.svg
ic_adjust_24px.svg
ic_adjust_48px.svg
ic_assistant_photo_24px.svg
ic_audiotrack_24px.svg
ic_audiotrack_48px.svg
ic_blur_circular_24px.svg
ic_blur_linear_24px.svg
ic_blur_linear_48px.svg
ic_blur_off_24px.svg

For me, XnView MP v0.84 neither shows thumbnails for these SVG files nor it can open them. Could somebody else please verify?
Shores
Posts: 31
Joined: Sat Aug 23, 2014 5:42 pm

Re: SVG rendering broken with small svg images

Post by Shores »

I'm using 0.84 x64 and I see the thumbnails perfectly...

Are you sure that you haven't excluded SVG files from file list in Settings - File List - Custom filter ?

Nonetheless there still is no way to set SVG thumbnail background to something not white, and this means that white SVG images can't be seen since they're rendered on white bg!
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: SVG rendering broken with small svg images

Post by helmut »

Shores wrote:I'm using 0.84 x64 and I see the thumbnails perfectly...
O.k., strange.
Shores wrote:Are you sure that you haven't excluded SVG files from file list in Settings - File List - Custom filter ?
Yes, I deleted "svg" from the list of excluded file formats, already.
Shores wrote:Nonetheless there still is no way to set SVG thumbnail background to something not white, and this means that white SVG images can't be seen since they're rendered on white bg!
Do these SVG files have a transparent background? Or what is the background colour of the SVG files?
Post Reply