Skip to content

Commit

Permalink
Link to live demo, closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Willison committed Aug 21, 2018
1 parent e40ac68 commit edb4719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
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](https://github.com/simonw/datasette/issues/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](https://docs.python.org/3/library/imghdr.html) and render that cell using an `<img src="data:image/png;base64,...">` element.

Here's a [demo of the plugin in action](https://datasette-render-images-demo.datasette.io/favicons/favicons).

0 comments on commit edb4719

Please sign in to comment.