Last modified: 2012-08-05 21:24:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21543, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19543 - SVGs with no size are rendered as 512x512 and thus losing correct aspect ratio
SVGs with no size are rendered as 512x512 and thus losing correct aspect ratio
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/File:OLS...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-06 01:21 UTC by Pasha Stetsenko
Modified: 2012-08-05 21:24 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pasha Stetsenko 2009-07-06 01:21:53 UTC
Look at the file http://commons.wikimedia.org/wiki/File:OLS_example_weight_vs_height_scatterplot.svg (the actual file is http://upload.wikimedia.org/wikipedia/commons/c/c1/OLS_example_weight_vs_height_scatterplot.svg).

It renders normally in browsers Chrome, Mozilla, Safari or IE; however Wikimedia's renderer somehow ignores the actual scale of the image (approximately golden ratio) and forces it to be square, which looks rather ugly.
Comment 1 Brion Vibber 2009-08-03 16:53:54 UTC
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.
Comment 2 Derk-Jan Hartman 2010-11-04 04:16:05 UTC
The image does not specify an imagesize in any way, which makes it rather difficult for the parser to make a guess about the dimensions of the image.

Feeding this to imagemagick errors out. In rsvg you actually get a png image, but mediawiki does not size images based on information from the scalar.

I see no way to fix such situations.
Comment 3 Ariel T. Glenn 2011-09-18 08:39:28 UTC
giving svg bugs back to the pool.
Comment 4 matanya 2012-08-05 21:24:43 UTC
This can't be fixed per comment 2.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links