Commit b8de5274 authored by Jerome Flesch's avatar Jerome Flesch

Cuneiform: when calling, always force format="BMP"

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