Code: 2, Subcode: 102, Message: "Invalid input: No 'ftyp' box"
alexdong opened this issue · 1 comments
alexdong commented
Try to process this file and received an exception:
sf = pyheif.read_heif(src)
File "pyheif/reader.py", line 29, in read_heif
result = _read_heif_bytes(d, apply_transformations)
File "pyheif/reader.py", line 36, in _read_heif_bytes
result = _read_heif_context(ctx, d, apply_transformations)
File "pyheif/reader.py", line 47, in _read_heif_context
raise HeifError(code=error.code, subcode=error.subcode, message=ffi.string(error.message).decode())
Here is the HEIC file that's causing the issue:
https://www.dropbox.com/s/wixzejj7wf4vmsa/216e3c80e26e41e28cdde39e730ca933.HEIC?dl=1
Our environment is latest pyheif with libheif 1.6.0 on both Linux and OSX Catalina.
Thanks,
Alex
Deleted user commented
Hi Alex, that image is a JPEG - here's the first few bytes -
00000000: ffd8 ffe0 0010 4a46 4946 0001 0100 0048 ......JFIF.....H
00000010: 0048 0000 ffe1 08de 4578 6966 0000 4d4d .H......Exif..MM
00000020: 002a 0000 0008 000b 010f 0002 0000 0006 .*..............