Commit b8de5274 authored by Jerome Flesch's avatar Jerome Flesch

Cuneiform: when calling image.save(), always force format="BMP"

Otherwise, it seems Pillow is sometimes confused (for example with format="JPEG")
Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@gmail.com>
parent 777f2752
......@@ -102,7 +102,7 @@ def image_to_string(image, lang=None, builder=None):
image = image.convert("RGB")
img_data = BytesIO()
image.save(img_data, format=image.format)
image.save(img_data, format="BMP")
proc = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
......
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