Skip to content

Instantly share code, notes, and snippets.

@minrk
Created February 11, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minrk/8946516 to your computer and use it in GitHub Desktop.
Save minrk/8946516 to your computer and use it in GitHub Desktop.
{%- extends 'full.tpl' -%}
{% block data_png %}
<img src="data:image/png;base64,{{ output.png }}"
{%- if 'width' in output.metadata.get('png', {}) %}
width={{output.metadata['png']['width']}}
{%- endif %}
{%- if 'height' in output.metadata.get('png', {}) %}
height={{output.metadata['png']['height']}}
{%- endif %}
>
{%- endblock data_png %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment