Rename image_url to image_file (#15)

This commit is contained in:
Christopher Chou authored and GitHub committed 2024-01-16 15:41:30 -08:00
1 parent e71d4ab3f9
commit 5b27a1dce4
1 file changed
+1 -1
+1 -1
View File
@@ -209,7 +209,7 @@ def load_image(image_file):
elif image_file.lower().endswith(("png", "jpg", "jpeg", "webp", "gif")):
image = Image.open(image_file)
elif image_file.startswith("data:"):
image_file = image_url.split(",")[1]
image_file = image_file.split(",")[1]
image = Image.open(BytesIO(base64.b64decode(image_file)))
else:
image = Image.open(BytesIO(base64.b64decode(image_file)))