diff --git a/src/PIL/Jpeg2KImagePlugin.py b/src/PIL/Jpeg2KImagePlugin.py index 448efe4d1..6f25c3390 100644 --- a/src/PIL/Jpeg2KImagePlugin.py +++ b/src/PIL/Jpeg2KImagePlugin.py @@ -154,9 +154,6 @@ def _parse_jp2_header(fp): if reader.read_fields(">4s")[0] == b"jpx ": mimetype = "image/jpx" - if header is None: - raise SyntaxError("Could not find JP2 header") - size = None mode = None bpc = None