Datasette plugin that renders binary blob images using data-uris
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
README.md
datasette_render_images.py
setup.py
test_datasette_render_images.py

README.md

datasette-render-images

PyPI Travis CI License

A Datasette plugin that renders binary blob images with data-uris, using the new render_cell plugin hook available in Datasette master - see issue 352 for details.

If a database row contains binary image data (PNG, GIF or JPEG), this plugin will detect that it is an image (using the imghdr module and render that cell using an <img src="data:image/png;base64,..."> element.

Here's a demo of the plugin in action.