Brion Vibber schrieb:
Some folks may be interested in my blog post about high-density displays and how using higher-density or vector images directly can greatly improve rendering and legibility of diagrams and charts:
http://leuksman.com/log/2011/12/04/high-density-displays-mobile-and-beyond/
If anybody's interested in fiddling around with JavaScript to swap in high-density PNG images and scalable SVG images...
I already have tried to build a userscript for replacing server-rendered pngs with the original svgs over a year ago. Problem one were missing viewBox attributes, without which my browser (Opera, though its fairly good svg support) didn't show them correctly. I could write a workaround for my userscript, but a bookmarklet/gadget/whatever will fail because it can't access svg documents out of the same-domain-scope. While this might have changed since then, I ran into another problem: Lots of svg files are optimized to be rendered on WMF server and to be shown as pngs. The original svg document looks quite different when viewed in the browser directly, often even worse. Due to varying support of some svg features between different browsers (and the png-generator) the display of svgs will differ a lot, and I can't imagine what unconsitent images would mean to user friendlyness.
Of course I do not want to say using native svg shouldn't be the aim, but the conversion won't be easy.
Bergi