Page MenuHomePhabricator

Reuploaded SVG gets rendered with wrong aspect ratio
Closed, InvalidPublic

Description

Author: daniel

Description:
I created a 1194x1534 px SVG image using inkscape and uploaded it (see
URL). Unsatisfied with the result I modified the image, also enlarging
the canvas in x-direction to 1260x1534, and reuploaded. The new
serverside rendered bitmap is clipped and has a wrong aspect ratio. The
SVG version renders fine in my browser (Konqueror).

The MediaWiki in question is the one used on en.wikipedia.org (1.6alpha).


Version: 1.6.x
Severity: normal
URL: http://en.wikipedia.org/wiki/Image:Commons-logo-Anaglyph.svg

Details

Reference
bz4813

Event Timeline

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

The image claims to be 1260.1801 x 1533.65 pixels, and is rendered there to 492x599.
This ratio appears to be consistent.

daniel wrote:

But the content of the image is rendered too wide and thus cut at the sides. The
center dot is eliptical while it shouldn't be (see
http://upload.wikimedia.org/wikipedia/en/2/23/Commons-logo-Anaglyph.svg).

daniel wrote:

It seems that the reason for the aforementioned behaviour were some
sodipodi/inkscape tags in the sgv file, which caused the file to render
correctly in inkscape and ksvg, but had rsvg render the picture with a wrong
aspect ratio causing clipping at the sides. My guess: it was a toplevel
"transform" attribute. I removed it by hand and reuploaded. Works fine now.