I'm getting an intermittent issue while processing JPEG files.
System: Raspberry Pi
OS: Arch Linux
Python: 3.4.1
Pillow: 2.5.3
Exception:
File "/usr/lib/python3.4/site-package/PIL/Image.py", line 2256, in open
% (filename if filename else fp))
OSError: cannot identify image file 'xxxxx.jpg'
My image files are saved out of PiCamera; however, the same issue also crops up with images that Pillow saves. I'm processing images in a loop. There is a two-second delay between processing each image. It's not related to memory: I monitored available memory, and that was stable before and after the exception.
After processing a few images, the exception is thrown, then my Pillow code simply re-processes (re-opens) the same image and Pillow opens it and processes it normally ... same file ... no changes ... just two seconds later after the exception is thrown. Therefore, it seems something is amiss in the library.
I'm getting an intermittent issue while processing JPEG files.
System: Raspberry Pi
OS: Arch Linux
Python: 3.4.1
Pillow: 2.5.3
Exception:
My image files are saved out of PiCamera; however, the same issue also crops up with images that Pillow saves. I'm processing images in a loop. There is a two-second delay between processing each image. It's not related to memory: I monitored available memory, and that was stable before and after the exception.
After processing a few images, the exception is thrown, then my Pillow code simply re-processes (re-opens) the same image and Pillow opens it and processes it normally ... same file ... no changes ... just two seconds later after the exception is thrown. Therefore, it seems something is amiss in the library.