Page MenuHomePhabricator

PNG thumbnail of SVG file shows wrong black areas
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • look at the bitmap of the SVG

What happens?:

it has black in the photo: https://commons.wikimedia.org/wiki/File:Wpw2_(CardioNetworks_ECGpedia).svg

What should have happened instead?:

it shouldnt have black in the photo, it should look like the original photo: https://en.ecgpedia.org/wiki/File:Wpw2.svg

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Aklapper renamed this task from SVG render error to PNG thumbnail of SVG file shows wrong black areas.Oct 29 2024, 11:41 AM
Aklapper removed a project: SVG.
Aklapper updated the task description. (Show Details)
Aklapper added a project: Thumbor.

I can reproduce this locally rendering the SVG file itself using librsvg 2.59.1 but not when opening in Inkscape 1.4.
The problem disappears when removing filter:url(#filter6570) from the style attribute of path3475 and path5451.
So this looks like an upstream issue in the librsvg library that we use.

I reported this in https://gitlab.gnome.org/GNOME/librsvg/-/issues/1138

ok thanks, also on normacs (image viewer) and nemo (file manager) it is wrong so yeah probably librsvg

The SVG file itself is broken according to https://gitlab.gnome.org/GNOME/librsvg/-/issues/1138#note_2261317 by using a comma instead of a period in the NumberList, so the SVG file should be fixed instead.

A fix to properly handle this will be included in librsvg 2.59.3 (though it may take a long time to deploy that version on Wikimedia servers)