mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-09 14:54:46 +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
|
||||
from .MpoImagePlugin import MpoImageFile
|
||||
im = MpoImageFile(fp, filename)
|
||||
except (TypeError, IndexError):
|
||||
except (TypeError, IndexError, ValueError):
|
||||
# It is really a JPEG
|
||||
pass
|
||||
except SyntaxError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user