Last modified: 2012-10-25 18:08:23 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 T39129, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37129 - Bad SVG rendering by MediaWiki
Bad SVG rendering by MediaWiki
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.19
All All
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/wiki/Fi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-26 12:23 UTC by DavidL
Modified: 2012-10-25 18:08 UTC (History)
4 users (show)

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


Attachments

Description DavidL 2012-05-26 12:23:01 UTC
When a PNG image preview of a SVG image is created by MediaWiki (on file description page, or when image is used in wiki pages) it may be rendered weirdly.
But if you click on the image on the description page, the SVG file is correctly rendering by the browser.

For an example, see :
https://commons.wikimedia.org/wiki/File:Tableau_g%C3%A9n%C3%A9alogique_des_Cap%C3%A9tiens_directs.svg
Comment 1 DavidL 2012-05-26 12:26:21 UTC
Another example is https://commons.wikimedia.org/wiki/File:Jeux.svg where points of dices are not rendered correctly. That is why I created a PNG version instead of using SVG format.
Comment 2 Bawolff (Brian Wolff) 2012-06-26 12:08:29 UTC
I think everyone is aware that rsvg has parts of it that are shitty. (Note MediaWiki doesn't render the svg's, another program named rsvg does. MediaWiki can be configured to use a variety of different svg renderers. I think rsvg was chosen for performance, but don't quote me on that).

Since there is nothing specificly actionable on this bug (other than make svgs not suck), I'm dupping to the tracking bug for svg issues - bug 8901 [not sure if that's entirely appropriate or not. people can revert if they disagree]

*** This bug has been marked as a duplicate of bug 8901 ***
Comment 3 MZMcBride 2012-06-27 01:30:05 UTC
(In reply to comment #2)
> Since there is nothing specificly actionable on this bug (other than make svgs
> not suck), I'm dupping to the tracking bug for svg issues - bug 8901 [not sure
> if that's entirely appropriate or not. people can revert if they disagree]

I'm not sure what you mean by there not being anything specifically actionable. User uploads <https://commons.wikimedia.org/wiki/File:Tableau_g%C3%A9n%C3%A9alogique_des_Cap%C3%A9tiens_directs.svg> to Wikimedia Commons. SVG displays fine in SVG editors and in the browser, but Wikimedia's PNG of the SVG is simply broken. That seems fairly actionable to me.
Comment 4 Bawolff (Brian Wolff) 2012-06-27 12:10:45 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Since there is nothing specificly actionable on this bug (other than make svgs
> > not suck), I'm dupping to the tracking bug for svg issues - bug 8901 [not sure
> > if that's entirely appropriate or not. people can revert if they disagree]
> 
> I'm not sure what you mean by there not being anything specifically actionable.
> User uploads
> <https://commons.wikimedia.org/wiki/File:Tableau_g%C3%A9n%C3%A9alogique_des_Cap%C3%A9tiens_directs.svg>
> to Wikimedia Commons. SVG displays fine in SVG editors and in the browser, but
> Wikimedia's PNG of the SVG is simply broken. That seems fairly actionable to
> me.

What I mean is rsvg has its issues, and they are numerous. Since there is no one specific issue reported here, I thought dupping to the bug tracking all rsvg issues would be a good idea. After all one can only stop things from sucking by working on each issue one at a time (Short of the radical action of changing which svg renderer, which seems unlikely to happen).

I suppose tracking all these rsvg issues here is kind of pointless in itself since they're all upstream issues, and to my knowladge no one Wikimedia related contributes to rsvg, but that seems to be what we've been doing for a while now.
Comment 5 Bryan Tong Minh 2012-10-25 18:08:23 UTC
This works now with the rsvg upgrade.

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


Navigation
Links