djangosnippets.org: Latest snippets posted by rbeckhttp://djangosnippets.org/users/rbeck/2010-11-17T08:16:43.444488-06:00rbeckImage inlining template tag lib
2010-11-17T08:16:43.444488-06:00rbeckhttp://djangosnippets.org/snippets/2268/<p>A custom templatetag for inlining image in the browser.
The principe is to base64 encode the image and avoid a http request.
There is a cache handling, you just have to specify a writable directory.
</p>
<p>An example of the utilisation (template part): <a href="http://djangosnippets.org/snippets/2267/">http://djangosnippets.org/snippets/2267/</a>
</p>
<p>The explication on <a href="http://raphaelbeck.wordpress.com/2010/11/14/make-inline-images-to-improve-performance-with-django-template-tags/">http://raphaelbeck.wordpress.com/2010/11/14/make-inline-images-to-improve-performance-with-django-template-tags/</a>
</p>
Freely redistributableImage inlining template tag example
2010-11-17T08:10:58.284488-06:00rbeckhttp://djangosnippets.org/snippets/2267/<p>The example of the Image inlining template tag lib which inline images in the browser instead of making an Http request.
</p>
<p>The lib is available at : <a href="http://djangosnippets.org/snippets/2268/">http://djangosnippets.org/snippets/2268/</a>
</p>
Freely redistributableImage inlining template tag example
2010-11-17T08:10:26.244488-06:00rbeckhttp://djangosnippets.org/snippets/2266/<p>The example of the Image inlining template tag lib which inline images in the browser instead of making an Http request.
</p>
Freely redistributable