jpeg2000 support in capacitor android
Hi, I have tried this library for jpeg2000 image renderin in capacitor 4(Android) but its not working.I mean the image is not loading in android 12(Samsung SM M32)
Below is my code if (mediaType == "image/jp2") { val jp2Image = arrayElement.getString(3) val byteArray = Base64.decode(jp2Image, Base64.DEFAULT) try { val bmpOne: Bitmap = JP2Decoder(byteArray).decode() val jp2data = JP2Encoder(bmpOne).encode() arrayElement.put(3,jp2data ) ListArray.put(arrayElement) value.put("List",ListArray) println("JP2000 Image found! Decoding...") } catch (e:Exception ) { e.printStackTrace() } } val ret = JSObject() ret.put("name", "jpgvalue") ret.put("value", value) call.resolve(ret)
Could you please confirm if this library works in ionic framework.
Hi sorry this repository seems to be inactive, I will try to identify people that could help you
Thanks @Sebastienlejeune
Hello @Raghavaraju-K, do you get any exceptions? What errors are you getting in the Logcat?