HEIF-converter
HEIF-converter copied to clipboard
java.lang.RuntimeException: infe not implemented (crash)
Describe the bug Give file source call convert it crashes
java.lang.RuntimeException: infe not implemented
at linc.com.heifconverter.iso14496.part12.ItemInfoEntry.getContent(ItemInfoEntry.kt:27)
To Reproduce Steps to reproduce the behavior:
- download heic sample from https://filesamples.com/formats/heic
- try to convert crash
Expected behavior it should convert the file
Screenshots no screenshots needed
Smartphone (please complete the following information):
- Device: android emulator
- OS: pie 9
The implementation in this repo works best on Android 10 and higher. Since it uses the built-in BitmapFactory
to do all the decoding.
However for Android 9 and lower, it uses a custom implementation to decode the HEIF. Unfortunately in my testing this does not support the majority of HEIF files I've come across.
I have forked this repo, rewrote it, and added a bunch of features. Including support for Android 9 and lower. You can check it out here.