PIL: DecompressionBombWarning
After adding a lot of new pictures to my site, the scanner completed with the following messages:
...
94 2021-10-13 08:10:50.906181 [Saving password/codes files...]
18417 2021-10-13 08:10:50.924598 [saving all physical albums to json files...]
110276187 2021-10-13 08:12:41.200785 [saving all by date albums to json files...]
139848178 2021-10-13 08:15:01.048963 [saving all by gps albums to json files...]
12166310 2021-10-13 08:15:13.215273 [saving all by search albums to json files...]
662246643 2021-10-13 08:26:15.461916 [saving all protected albums to json files...]
157729 2021-10-13 08:26:15.619645 [cleaning up...]
232070263 2021-10-13 08:30:07.689908/usr/lib/python3/dist-packages/PIL/Image.py:2600: DecompressionBombWarning: Image size (135711000 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
DecompressionBombWarning)
/usr/lib/python3/dist-packages/PIL/Image.py:2600: DecompressionBombWarning: Image size (139097400 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
DecompressionBombWarning)
/usr/lib/python3/dist-packages/PIL/Image.py:2600: DecompressionBombWarning: Image size (136629000 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
DecompressionBombWarning)
[ The end! ]
I still don't know what are the pictures causing these warning and if the indexing completed successfully. They are probably caused by large high definition panorama pictures.
Then we'll have to figure out how to let the site owner increase or not PIL image size.