I've got some corrupted .heic and conversion is failing for them with this error:
Unable to convert /mnt/c/Users/TiTi/Downloads/heic/2-20230525_151210.heic: corrupted image(dimensions in header: (800, 360), decoded dimensions: (800, 357)). Set ALLOW_INCORRECT_HEADERS to True if you need to load them
I tried export ALLOW_INCORRECT_HEADERS=True with no success.
I suppose this is a Pillow flag.
I there a way to set it ?
Edit:
in converter.py, i replaced register_heif_opener() with register_heif_opener(allow_incorrect_headers=True) + recompile
and it worked like a charm
Hello,
I've got some corrupted .heic and conversion is failing for them with this error:
Unable to convert /mnt/c/Users/TiTi/Downloads/heic/2-20230525_151210.heic: corrupted image(dimensions in header: (800, 360), decoded dimensions: (800, 357)). Set ALLOW_INCORRECT_HEADERS to True if you need to load them
I tried
export ALLOW_INCORRECT_HEADERS=True
with no success. I suppose this is a Pillow flag. I there a way to set it ?Edit: in converter.py, i replaced
register_heif_opener()
withregister_heif_opener(allow_incorrect_headers=True)
+ recompile and it worked like a charm