From 6908577b548ec6ce633d1354ebfd4d751c2d10ad Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Wed, 27 Mar 2013 10:41:01 +0100 Subject: [PATCH] fixed image display --- openlp/core/lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index c77e49305..9a51f592d 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -184,7 +184,7 @@ def image_to_byte(image): image.save(buffie, "PNG") log.debug(u'image_to_byte - end') # convert to base64 encoding so does not get missed! - return byte_array.toBase64() + return bytes(byte_array.toBase64()).decode('utf-8') def create_thumb(image_path, thumb_path, return_icon=True, size=None):