Skip to content

Commit

Permalink
Added decoding for base64-encoded images (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbednar authored and philippjfr committed Oct 10, 2018
1 parent 165c6cd commit 49b11d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panel/pane.py
Expand Up @@ -430,6 +430,8 @@ def _imgshape(self, data):
def _get_properties(self):
p = super(Image,self)._get_properties()
data = self._img()
if isinstance(data, str):
data = base64.b64decode(data)
width, height = self._imgshape(data)
if self.width is not None:
if self.height is None:
Expand Down

0 comments on commit 49b11d5

Please sign in to comment.