mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-10 15:24:45 +03:00
Fix some JPEG images identified as MPO
This commit is contained in:
parent
b7501aa3c0
commit
89963a9480
|
@ -713,7 +713,7 @@ def jpeg_factory(fp=None, filename=None):
|
||||||
# It's actually an MPO
|
# It's actually an MPO
|
||||||
from .MpoImagePlugin import MpoImageFile
|
from .MpoImagePlugin import MpoImageFile
|
||||||
im = MpoImageFile(fp, filename)
|
im = MpoImageFile(fp, filename)
|
||||||
except (TypeError, IndexError):
|
except (TypeError, IndexError, ValueError):
|
||||||
# It is really a JPEG
|
# It is really a JPEG
|
||||||
pass
|
pass
|
||||||
except SyntaxError:
|
except SyntaxError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user