Page MenuHomePhabricator

Incorrect rendering of stretched text in svg -> png conversion
Closed, ResolvedPublic


Author: broken.arrow

The stretched text in the image is not rendered correctly on WMF sites, while it
is on a local install of rsvg 2.16.0. The horizontal and vertical scaling is not
respected. Possibly related to bug 3769.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:34 PM
bzimport set Reference to bz8895.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

What version of rsvg is the WMF using?

Clarification from BrokenArrow: "the text is not centered and the last word
'TERRA' is missing".

Wikimedia is using rsvg 2.14.

Assigning SVG bugs to Ariel -- need a cleanup pass to see what's fixed up by a librsvg upgrade, what can be resolved with fixes to our font configuration, what can be fixed on our end, and what still needs to be pushed upstream.

giving SVG bugs back to the pool.

The image that was the source of this report was apparently deleted from it.wp.

Unable to assess if the problem still occurs.

I've copied the deleted file to test.wikipedia (deleted as orphan/non-encyclopedic from it.wikipedia):

Looks like it does stretch vertically, but the text is not being shrunk to fit.

... however I don't think it's actually using proper facilities to shrink to fit -- it *is* being squished by a particular scale factor, but it's also trying to use the font-family 'Impact' which is a condensed font to begin with. Since this font is unavailable, it's defaulting to something like Helvetica which is much wider.

I'll consider this one FIXED as the requested scaling is happening, and there's no need to fix this particular image's font usage as it's not in use.