From 770ba5201f5c60b2bb36602ff9d359f641e33125 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 23 Oct 2011 21:14:40 +0200 Subject: Charting with flask, rgraph and custom "timeseries database" --- schall/static/RGraph/docs/image2url.html | 142 +++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 schall/static/RGraph/docs/image2url.html (limited to 'schall/static/RGraph/docs/image2url.html') diff --git a/schall/static/RGraph/docs/image2url.html b/schall/static/RGraph/docs/image2url.html new file mode 100644 index 0000000..7579bd5 --- /dev/null +++ b/schall/static/RGraph/docs/image2url.html @@ -0,0 +1,142 @@ + + + Image to data: url converter + + + + + +
+ Courtesy of www.rgraph.net +
+ +

Image to data: url converter

+ + + This only works for online images, which are on the [] domain. There's no server-side + scripting though, so feel free to put it on your website and use it there. + + # +

Why use data: URLs?

+ +

+ By using data: URLs you reduce the number of HTTP requests needed to display your page since the images are part of the + page itself. This does mean though that the images can't be cached (unless of course the page itself is cached). But, if you were + to reuse the same image on subsequent pages, they wouldn't be cached. You can get around this though by using some + Javascript at the bottom of your page to change the URLs to the real image files. The + www.rgraph.net front page uses this technique. +

+ +

+ + URL: + + +

+ + The data: url: + + +

+ + A full image tag with the url as the src: + + +

The image itself using the data: url:

+ + + + +
+ + Mention RGraph on Twitter + +
+ + + +
+ + +
+ \ No newline at end of file -- cgit v1.2.1