Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Multiple image versions with fallback

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


magnusmanske at googlemail

Apr 23, 2012, 4:58 AM

Post #1 of 2 (85 views)
Permalink
Multiple image versions with fallback

Found this nice hack to show normal and high-res images on mobile
depending on bandwidth:

http://arstechnica.com/business/news/2012/04/javascript-package-offers-a-smarter-way-to-serve-hi-res-images.ars

In continuation of the recent discussion, might this work for showing
SVGs directly in browsers that can do so, etc.?

Magnus

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jarry1250 at gmail

Apr 23, 2012, 10:43 AM

Post #2 of 2 (75 views)
Permalink
Re: Multiple image versions with fallback [In reply to]

Magnus Manske wrote:

> In continuation of the recent discussion, might this work for showing
> SVGs directly in browsers that can do so, etc.?
>
> Magnus
>

I would argue that SVGs are a poor use case here (a better one being
high-density JPGs such as those used by Retina displays).

Specifically, there are two main reasons in favour of serving PNGs over
SVGs:
* Uniformity. Instead of having to optimise against many different
browsers' implementations of SVG specifications, SVG users only have to
optimise against one (rsvg).
* SVG capability. Some browsers won't badly render SVG images, they'll just
refuse to show them at all (this is a receding factor bbut obviousl one of
historical importance).

Bandwidth considerations come in a poor third (especially considering some
PNGs are larger than their SVG equivalents).

That said, it's interesting stuff, if incredibly bleeding-edge at the
moment.

Regards,
Harry (User:Jarry1250)
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.