HEIF-converter icon indicating copy to clipboard operation
HEIF-converter copied to clipboard

java.lang.RuntimeException: infe not implemented (crash)

Open 0x410c opened this issue 3 years ago • 1 comments

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:

  1. download heic sample from https://filesamples.com/formats/heic
  2. 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

0x410c avatar May 14 '21 21:05 0x410c

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.

jordond avatar Aug 09 '22 15:08 jordond