Merge pull request #5410 from keymanapp/fix/linux/cherry/issue-5400

fix(linux): Improve bitmap conversion 🍒
This commit is contained in:
Eberhard Beilharz 2021-07-02 10:06:35 +02:00 • committed by GitHub
commit 2fe486eea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,9 @@ import numpy as np
import os
import sys
import struct
from PIL import Image
from PIL import Image, ImageFile
Image.LOAD_TRUNCATED_IMAGES = True
ImageFile.LOAD_TRUNCATED_IMAGES = True
def changeblacktowhite(im):