Page MenuHomePhabricator

Some SVG <use> elements failed to convert into PNG image because they are refering another <use> elements
Closed, DuplicatePublicBUG REPORT

Description

Steps to Reproduce:

  1. Modifying File:Coat of arms of Portugal (Lesser).svg just by adding two additional elements
  2. Upload as File:Coat of arms of Portugal (Lesser with field).svg

Actual Results:
The three blue shields in the center missing in PNG preview, thay are <use> elements, but they are refering another <use> elements via xlink:href attribute.
These bug have also affected: File:Coat of arms of New Zealand.svg, File:Crowned Arms of New Zealand.svg, File:New Brunswick coat of arms.svg. I've made workarounds to avoid this problem, and you can see my efforts in their File History section respectively, but I don't want to pay so much times any more to do such things.

Expected Results:
The three blue shields in the center should be redering in PNG preview, without any modification.

Event Timeline

Screenshot.PNG (860×1 px, 125 KB)
SVG image after I uploaded to Wikimedia Commons
Screenshot (2).PNG (860×1 px, 64 KB)
The same image rendering in Firefox directly

This is not about rendering SVG files themselves (so I do not think this should be Wikimedia-SVG-rendering).

PNG thumbnails of SVG files are created by Thumbor (as far as I understand).
Cannot reproduce locally with a (way newer!) version of librsvg2 (and not involving Thumbor):

Screenshot from 2020-12-21 17-34-21.png (950×1 px, 208 KB)

The same issue occurred on the Olympic flag files mentioned here, before I uploaded workarounds for them.

I can narrow down the date the problem started to between 28 August and 6 October; these are the respective upload dates of the latest revision of Flag of Myanmar (1974–2010).svg, which has a correct cached thumbnail despite using recursive clones (and renders incorrectly in the SVGedit RSVG preview), and the revision of Flag of the Solomon Islands (2008 Summer Olympics).svg that SpinnerLaserzthe2nd originally noted lacked some of the stars.

JoKalliauer changed the task status from Open to Stalled.Nov 5 2021, 9:34 AM
JoKalliauer triaged this task as Low priority.
JoKalliauer moved this task from Backlog to Upstream (librsvg) on the Thumbor board.
JoKalliauer moved this task from Backlog to update librsvg on the Wikimedia-SVG-rendering board.
JoKalliauer moved this task from Backlog to Patch merged upstream on the Upstream board.