Skip to content

Fix for PIL.Image.DecompressionBombError errors #76

@nivaca

Description

@nivaca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions