File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
21
21
### Fixed
22
22
- Auto annotation, TF annotation and Auto segmentation apps (https://github.com/opencv/cvat/pull/1409 )
23
+ - Import works with truncated images now: "OSError: broken data stream" on corrupt images (https://github.com/opencv/cvat/pull/1430 )
23
24
24
25
### Security
25
26
-
Original file line number Diff line number Diff line change 13
13
import av .datasets
14
14
import numpy as np
15
15
from pyunpack import Archive
16
- from PIL import Image
16
+ from PIL import Image , ImageFile
17
+
18
+ # fixes: "OSError:broken data stream" when executing line 72 while loading images downloaded from the web
19
+ # see: https://stackoverflow.com/questions/42462431/oserror-broken-data-stream-when-reading-image-file
20
+ ImageFile .LOAD_TRUNCATED_IMAGES = True
17
21
18
22
from cvat .apps .engine .mime_types import mimetypes
19
23
You can’t perform that action at this time.
0 commit comments