Piexif
Piexif copied to clipboard
failed to load corrupted exif data
This image has corrupted exif data. I get a MemoryError when I try to load it with piexif.load
.
Pillow can open it and I got these warnings.
/usr/lib/python3.6/site-packages/PIL/TiffImagePlugin.py:725: UserWarning: Possibly corrupt EXIF data. Expecting to read 5517926400 bytes but only got 0. Skipping tag 0
" Skipping tag %s" % (size, len(data), tag))
/usr/lib/python3.6/site-packages/PIL/TiffImagePlugin.py:725: UserWarning: Possibly corrupt EXIF data. Expecting to read 3234119872 bytes but only got 424. Skipping tag 0
" Skipping tag %s" % (size, len(data), tag))
/usr/lib/python3.6/site-packages/PIL/TiffImagePlugin.py:742: UserWarning: Corrupt EXIF data. Expecting to read 4 bytes but only got 0.
warnings.warn(str(msg))
These are _getexif
returned results.
{271: 'Xiaomi\x00',
272: 'MiTwo\x00\x00',
282: (72, 1),
283: (72, 1),
296: 2,
305: 'www.meitu.com',
531: 1,
33434: (6479, 100000),
34665: 168,
34853: {},
34855: 1586,
36864: b'0220',
36867: '2015:11:22 16:52:18',
36868: '2002:12:08 12:00:00',
37121: b'\x01\x02\x03\x00',
37378: (230000, 100000),
37386: (385, 100),
40960: b'0100',
40961: 1,
40962: 3264,
40963: 2448,
40965: 394}