Page MenuHomePhabricator

Incorrect character placement in PNG thumbnail rendered from SVG
Closed, DuplicatePublic

Description

the png image https://en.wikipedia.org/wiki/Command_pattern#/media/File:Command_pattern.svg which is a png has badly formed text but the svg source from which it is generated seems fine.

Test.svg.png (206×613 px, 12 KB)

Event Timeline

Aklapper renamed this task from PNG rendered from SVG have random jitter on placement of type to Incorrect character placement in PNG thumbnail rendered from SVG.Nov 27 2019, 12:11 PM
Aklapper added projects: Thumbor, Upstream.

This seems to be about https://commons.wikimedia.org/wiki/File:Command_pattern.svg

Using newer librsvg2 2.46.3 locally and running rsvg-convert -h 645 -f png -o Command_pattern.png Command_pattern.svg, this still shows the same problem. Might be worth to report to upstream at https://gitlab.gnome.org/GNOME/librsvg/issues/

(For the records, the SVG itself looks correct in Chromium 78 and when using librsvg2 2.46.3. The SVG itself is incorrect in Firefox 70.)

I believe that this is just T36947, as this is a font size, hinting, and kerning problem. I generally find more issues with Liberation Sans (the default sans-serif) than Noto Sans, so it may be related to the font.

This issue is the same as T36947. Font sizes in original Command_Pattern.svg were below 5px.