diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index 99c1190..48b94f2 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -628,7 +628,7 @@ def get_template(name): image = row[0] logging.info('Thumbnail image of {} fetched'.format(name)) - return flask.Response(image, mimetype='image/png') + return flask.Response(bytes(image), mimetype='image/png') @app.route('/thrimshim/template-metadata/')