Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

fix IOError: image file truncated” with big image #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chainercv/utils/image/read_image.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import numpy as np
from PIL import Image
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True


def read_image(path, dtype=np.float32, color=True):
Expand Down