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
As reported here, delegate webp/cwebp libraries do NOT support WebP images larger then 12k*12k
Python PIL (9.5.0 as of today) relies on libwebp, and some quick testing reveals that you will NOT be able to save a WebP image larger then 12k. Tests below:
error when loading a 12k sample: python/lib/site-packages/PIL/Image.py:3176: DecompressionBombWarning: Image size (144000000 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
error when loading a 14k sample:
python/lib/site-packages/PIL/Image.py", line 3173, in _decompression_bomb_check
raise DecompressionBombError(msg)
PIL.Image.DecompressionBombError: Image size (196000000 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.
Image.py:3176: DecompressionBombWarning: Image size (144000000 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
These errors happen when loading an image, we are not even at the save image part:
Therefore, no support will be provided for WebP images larger than 12k, as it is by design, from the Google developers.
The text was updated successfully, but these errors were encountered:
As reported here, delegate webp/cwebp libraries do NOT support WebP images larger then 12k*12k
Python PIL (9.5.0 as of today) relies on libwebp, and some quick testing reveals that you will NOT be able to save a WebP image larger then 12k. Tests below:
python/lib/site-packages/PIL/Image.py:3176: DecompressionBombWarning: Image size (144000000 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
These errors happen when loading an image, we are not even at the save image part:
Therefore, no support will be provided for WebP images larger than 12k, as it is by design, from the Google developers.
The text was updated successfully, but these errors were encountered: