mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-25 07:17:41 +00:00
Merge pull request #5410 from keymanapp/fix/linux/cherry/issue-5400
fix(linux): Improve bitmap conversion 🍒
This commit is contained in:
commit
2fe486eea7
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue