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
There's a file in my library that can't be interacted with or shown (other than a red crossed out tag). Due to it being misinterpreted as a decompression bomb DOS attack. Warning message below.
D:\TagStudio-main.venv\Lib\site-packages\PIL\Image.py:3218: DecompressionBombWarning: Image size (108603828 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
warnings.warn(
I was confused by this, so after some searching through the folder that I was looking at, I found that the file it was struggling with was a very large .png file that was about 20000x14000 px.
The text was updated successfully, but these errors were encountered:
Hi,
This error is caused by a library and is kind of fixable:
You can suppress this error by setting Image.MAX_IMAGE_PIXELS=None
Or IMAGE.MAX_IMAGE_PIXELS=108603829
(You can add this in thumbrenderer.py and I think it should work)
But i don't think it is a good idea to have safety precautions disabled or weakened in production code. But I'm not sure what others think about it.
Update:
Fixed the interaction, but now the thumbnail doesn't render, this is intentional, because I think we shouldn't remove the safety precaution.
There's a file in my library that can't be interacted with or shown (other than a red crossed out tag). Due to it being misinterpreted as a decompression bomb DOS attack. Warning message below.
I was confused by this, so after some searching through the folder that I was looking at, I found that the file it was struggling with was a very large .png file that was about 20000x14000 px.
The text was updated successfully, but these errors were encountered: