JP2ForAndroid icon indicating copy to clipboard operation
JP2ForAndroid copied to clipboard

jpeg2000 support in capacitor android

Open Raghavaraju-K opened this issue 2 years ago • 3 comments

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.

Raghavaraju-K avatar Mar 13 '23 12:03 Raghavaraju-K

Hi sorry this repository seems to be inactive, I will try to identify people that could help you

Sebastienlejeune avatar Mar 14 '23 09:03 Sebastienlejeune

Thanks @Sebastienlejeune

Raghavaraju-K avatar Mar 17 '23 05:03 Raghavaraju-K

Hello @Raghavaraju-K, do you get any exceptions? What errors are you getting in the Logcat?

michaldvorak-gemalto avatar Mar 20 '23 13:03 michaldvorak-gemalto