Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for PIL.Image.DecompressionBombError errors #76

Open
nivaca opened this issue Jul 4, 2018 · 2 comments
Open

Fix for PIL.Image.DecompressionBombError errors #76

nivaca opened this issue Jul 4, 2018 · 2 comments

Comments

@nivaca
Copy link

nivaca commented Jul 4, 2018

I've been having lots of these errors:

PIL.Image.DecompressionBombError: Image size (196310432 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.

I fixed it patching pypdfocr_pdf.py by adding the following line:

Image.MAX_IMAGE_PIXELS = None

Everything's working now. However, I don't know if this is the right way of solving this problem. If so, the line could be included in the file upstream.

@muhammedhassanm
Copy link

its worked forme

@brownaa
Copy link

brownaa commented Apr 5, 2021

Suggest to close this as this error prevents excessively large image files from being created (hogging memory and hard disk space)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants