Page MenuHomePhabricator

Offer SVGs as being rendered in PNG on File pages
Closed, DuplicatePublic


Currently a couple of sites (such as 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:
Example w/o JS:

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:11 PM
bzimport set Reference to bz24619.
bzimport added a subscriber: Unknown Object (MLST).

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

Hm.. It looks like this was done in 1.18 but I can't confirm it. Anyone ?

It was done for the Bitmap handler only, if I remember correctly. So that does not include SVG, ogg and other media.

Bryan.TongMinh wrote:

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.

This has been fixed at some point.

matmarex set Security to None.
matmarex removed a subscriber: wikibugs-l-list.