Skip to content

Commit

Permalink
Stop Pillow complaining about large files
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Jun 1, 2021
1 parent 549a68f commit 53cd222
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions microarchiver/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
# "OSError: image file is truncated (10 bytes not processed)"
ImageFile.LOAD_TRUNCATED_IMAGES = True

# This is to prevent Pillow from warning "DecompressionBombWarning: Image size
# (100153418 pixels) exceeds limit of 89478485 pixels ..."
Image.MAX_IMAGE_PIXELS = None

import microarchiver
from microarchiver import print_version
from .exceptions import *
Expand Down

0 comments on commit 53cd222

Please sign in to comment.