Unverified Commit 5b27a1dc authored by Christopher Chou's avatar Christopher Chou Committed by GitHub
Browse files

Rename image_url to image_file (#15)

parent e71d4ab3
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment