##// END OF EJS Templates
fix access to png width and height in nbconvert html basic template
Johannes Feist -
Show More
@@ -131,10 +131,10 b' unknown type {{ cell.type }}'
131 <img src="data:image/png;base64,{{ output.data['image/png'] }}"
131 <img src="data:image/png;base64,{{ output.data['image/png'] }}"
132 {%- endif %}
132 {%- endif %}
133 {%- if 'width' in output.metadata.get('image/png', {}) %}
133 {%- if 'width' in output.metadata.get('image/png', {}) %}
134 width={{output.metadata['png']['width']}}
134 width={{output.metadata['image/png']['width']}}
135 {%- endif %}
135 {%- endif %}
136 {%- if 'height' in output.metadata.get('image/png', {}) %}
136 {%- if 'height' in output.metadata.get('image/png', {}) %}
137 height={{output.metadata['png']['height']}}
137 height={{output.metadata['image/png']['height']}}
138 {%- endif %}
138 {%- endif %}
139 >
139 >
140 </div>
140 </div>
General Comments 0
You need to be logged in to leave comments. Login now