tryexceptpass / sofi

an OS agnostic UI module for Python
MIT License
387 stars 49 forks source link

Add base64 image encoding to Image object #70

Closed tryexceptpass closed 8 years ago

tryexceptpass commented 8 years ago

HTML supports embedding data uris with base64 encoded images into the src attribute of an img tag. Something like src=data:image/png;base64,encodeddata...

This would be a great addition given Python provides easy encoding functions (though different between 2.7 and 3)

More info here: http://www.bigfastblog.com/embed-base64-encoded-images-inline-in-html

tryexceptpass commented 8 years ago

Fixed with 1741e7a970902f64d156736441cd50301cedaf78