From 6055b51bceb6602f088c48b9039eb2f0ce30580c Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Thu, 26 Sep 2024 10:56:15 -0500 Subject: [PATCH] images fix --- rdgenerator/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdgenerator/views.py b/rdgenerator/views.py index 9892c57..31f057f 100644 --- a/rdgenerator/views.py +++ b/rdgenerator/views.py @@ -242,7 +242,7 @@ def resize_and_encode_icon(imagefile): # Check if resizing is necessary if img.size[0] <= 256: - return base64.b64encode(imagefile.read()) + return base64.b64encode(imagefile) # Calculate resized height based on aspect ratio wpercent = (256 / float(img.size[0]))