Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Python PIL \“IOError: image file truncated\” with big images
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Feb 25, 2018
1 parent 976d040 commit 05a270c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/fb2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

from copy import deepcopy
from lxml import etree, objectify
from PIL import Image
from PIL import Image, ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

from modules.utils import transliterate
from modules.myhyphen import MyHyphen
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

WINDOWS = platform.system().lower() == "windows"

VERSION = u'3.6.50'
VERSION = u'3.6.51'

0 comments on commit 05a270c

Please sign in to comment.