Skip to content
atomical edited this page Sep 14, 2010 · 5 revisions

ImageDataURI is a middleware plug-in for Django that embeds images into html based upon an arbitrary filesize rule.

Install:
1. Copy imagedatauri.py into the django middleware folder.
2. Add the ‘IMAGEDATAURI_MAX_IMAGE_SIZE’ variable to settings.py. This is a number in bytes.

References:
http://en.wikipedia.org/wiki/Data_URI_scheme

Todo:
Page caching
File caching

Clone this wiki locally