YOU CAN EDIT THIS PAGE! Just click any blue "Edit" link and start writing!

Tech talk:Render SVG images as PNG images

From Wikitravel Shared
Jump to: navigation, search


Archived from en:Pub:

From what I've tried, .svg cannot be shown on Wikitravel? I've found a highway sign on Wikimedia Commons and uploaded it to Shared ([1]), but when trying to put it in an article, it shows up as:
. Any way around this? If not, can I take a screenshot (which would take me 2 seconds) and upload it with the same license, credit, etc...only that it would be in .png format? AHeneen 01:35, 11 December 2008 (EST)
The ideal thing would be to open it in a program that reads SVG files and can save it or export it as a PNG (like Inkscape or Illustrator). If you don't have those programs, what you proposed should be fine, as long as you attribute the source back to the original SVG file (and the image file is compatible with our licensing, which Interstate signs are). Shaund 02:08, 11 December 2008 (EST)
shared:Tech:Render SVG images as PNG images appears to have been the most recent word on the subject. I think it might be worthwhile to discuss turning SVG rendering back on. Mediawiki's rendering is good enough for Wikipedia. LtPowers 10:06, 11 December 2008 (EST)
There's one big potential downside to enabling SVG rendering, one from which I think Wikimedia Commons is really suffering. If we just display SVGs instead of exported PNGs, it becomes necessary to save a separate SVG file for each translated file (like translated maps). This really gets in the way of updating maps and other images, as it would then be necessary to change each SVG file, rather than just modify the one base SVG and then run an exports for each language version. --Peter Talk 17:11, 11 December 2008 (EST)
Oh, right. I thought of that once before and forgot. =) LtPowers 08:22, 12 December 2008 (EST)
Imported into Inkscape, exported as PNG and used the same license/attribution. It is now here and fits nicely in the Interstate 4 article. Thank you both for your comments. AHeneen 10:19, 11 December 2008 (EST)