Image width/height don't work in embedded images #2390

Closed
fperez opened this Issue Sep 7, 2012 · 3 comments

4 participants

@fperez
IPython member

I saw that the Image function now has support for width/height, but in my attempts to use it it didn't work right. Looking at the generated HTML, it seems that the w/h tags aren't getting emitted for embedded images.

@stefanv

Currently, PNG's and SVG's have special renderers defined in outputarea.js. I'm not sure why images aren't simply rendered using _html_repr_, because that would: a) Allow us to do the base64 encoding in Python, not javascript and b) Make it trivial to incorporate width, height and any other meta-data (frame boxes, etc.).

See #2547

@ellisonbg
IPython member

Can we close this one @minrk now that the formatters handler image height/width?

@minrk
IPython member

yes, this has been addressed.

@minrk minrk closed this May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment