Last modified: 2012-01-04 11:13:25 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 T26619, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24619 - Offer SVGs as being rendered in PNG on File pages
Offer SVGs as being rendered in PNG on File pages
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/MediaWik...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-01 07:36 UTC by p858snake
Modified: 2012-01-04 11:13 UTC (History)
4 users (show)

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


Attachments

Description p858snake 2010-08-01 07:36:39 UTC
Currently a couple of sites (such as en.wiki) use javascript to offer a bar to allow the users to access SVGs as rendered PNGs on the file pages, We should probably look at doing this by default.

Bar in question: "This image rendered as PNG in other sizes: 200px, 500px, 1000px, 2000px."

Example w/  JS: http://en.wikipedia.org/wiki/File:Example.svg
Example w/o JS: http://www.mediawiki.org/wiki/File:Example.svg
Comment 1 Krinkle 2010-12-05 20:57:32 UTC
I thought this was already the case. But apparently not.

Could be added in core to filetypes that support it (ie. JPG, PNG, GIF etc.).

Perhaps a global variable array or hook for extensions to add other filetypes to offer other sizes as wel (ie. TIFF, PDF).

See also bug 23162
Comment 2 Krinkle 2012-01-01 23:28:56 UTC
Hm.. It looks like this was done in 1.18 but I can't confirm it. Anyone ?
Comment 3 Derk-Jan Hartman 2012-01-02 12:36:49 UTC
It was done for the Bitmap handler only, if I remember correctly. So that does not include SVG, ogg and other  media.
Comment 4 Bryan Tong Minh 2012-01-04 11:13:25 UTC
The relevant revision was r83791. Not sure why it doesn't show up for SVGs, but the thumbnail link logic should probably be moved a few if statements up.

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


Navigation
Links