You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "yoga_image_optimizer/main_window.py", line 422, in _on_drag_data_received
_add_path([path])
File "yoga_image_optimizer/main_window.py", line 417, in _add_path
app.add_image(path)
File "yoga_image_optimizer/application.py", line 183, in add_image
preview=helpers.preview_gdk_pixbuf_from_image(image),
File "yoga_image_optimizer/helpers.py", line 92, in preview_gdk_pixbuf_from_image
image_rgba.paste(image)
File "__env__/lib/python3.10/site-packages/PIL/Image.py", line 1617, in paste
im.load()
File "__env__/lib/python3.10/site-packages/PIL/ImageFile.py", line 276, in load
raise_oserror(err_code)
File "__env__/lib/python3.10/site-packages/PIL/ImageFile.py", line 71, in raise_oserror
raise OSError(message + " when reading image file")
OSError: broken data stream when reading image file
Corrupted images do not crash the app at import time and are now displayed with a "broken image" thumbnail:
We should now handle errors that occur during the optimization process as broken images are no more "filtered" by a crash during the thumbnail generation... :)
Bug description
What happened
If there is a corrupted image when dropping a bunch of file on the app window, the import process crash and other images are not imported.
What was expected
When a corrupted image is imported,
Step to reproduce
Steps to reproduce:
Just drag & drop some image with one corrupted.
System information
Operating system (with version): Ubuntu 22.04
How did you installed the software?
pip3 install yoga-image-optimizer
)master
branchYOGA Image Optimizer version:
master
(c60c29a510716cdb603d12f6e668d4b767b8b622
)Stack trace:
Related issue: #14
The text was updated successfully, but these errors were encountered: