{"action":"created","issue":{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/391","labels_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/391/comments","events_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/391/events","html_url":"https://github.com/SmileyChris/easy-thumbnails/pull/391","id":119230038,"number":391,"title":"template filter datauri","user":{"login":"jrief","id":1132472,"avatar_url":"https://avatars.githubusercontent.com/u/1132472?v=3","gravatar_id":"","url":"https://api.github.com/users/jrief","html_url":"https://github.com/jrief","followers_url":"https://api.github.com/users/jrief/followers","following_url":"https://api.github.com/users/jrief/following{/other_user}","gists_url":"https://api.github.com/users/jrief/gists{/gist_id}","starred_url":"https://api.github.com/users/jrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrief/subscriptions","organizations_url":"https://api.github.com/users/jrief/orgs","repos_url":"https://api.github.com/users/jrief/repos","events_url":"https://api.github.com/users/jrief/events{/privacy}","received_events_url":"https://api.github.com/users/jrief/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T17:44:46Z","updated_at":"2015-11-27T21:30:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/pulls/391","html_url":"https://github.com/SmileyChris/easy-thumbnails/pull/391","diff_url":"https://github.com/SmileyChris/easy-thumbnails/pull/391.diff","patch_url":"https://github.com/SmileyChris/easy-thumbnails/pull/391.patch"},"body":"This filter will return the base64 encoded data URI for a given thumbnail object.\r\n\r\nVery handy for small images to prevent an additional HTTP request.\r\n\r\nAlso useful when rendering HTML emails since most mail clients do not preload images referring external URL's. In order to make them immediately visible, they must be part of the payload. This filter can be used for it.\r\n\r\nExample usage::\r\n```\r\n{% thumbnail sample_image 25x25 crop as thumb %}\r\n<img src=\"{{ thumb|data_uri }}\">\r\n```\r\nwill for instance be rendered as:\r\n```\r\n<img src=\"data:image/png;base64,iVBORw0KGgo...\">\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/comments/160208826","html_url":"https://github.com/SmileyChris/easy-thumbnails/pull/391#issuecomment-160208826","issue_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/391","id":160208826,"user":{"login":"jrief","id":1132472,"avatar_url":"https://avatars.githubusercontent.com/u/1132472?v=3","gravatar_id":"","url":"https://api.github.com/users/jrief","html_url":"https://github.com/jrief","followers_url":"https://api.github.com/users/jrief/followers","following_url":"https://api.github.com/users/jrief/following{/other_user}","gists_url":"https://api.github.com/users/jrief/gists{/gist_id}","starred_url":"https://api.github.com/users/jrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrief/subscriptions","organizations_url":"https://api.github.com/users/jrief/orgs","repos_url":"https://api.github.com/users/jrief/repos","events_url":"https://api.github.com/users/jrief/events{/privacy}","received_events_url":"https://api.github.com/users/jrief/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T21:30:35Z","updated_at":"2015-11-27T21:30:35Z","body":"finally all tests pass now"}}