Open AndroidDeveloperLB opened 1 year ago
The app and the lib are already separated in the repository. When the lib will be more usable, I intend to publish it (on mavencentral if I figure it out how to publish on it).
@oupson So maybe it's possible to use Jitpack without any effort from your side, no?
@oupson It seems it should be possible: https://jitpack.io/#oupson/jxlviewer
However, for some reason there is an error with v0.3.0
@oupson It seems it should be possible: https://jitpack.io/#oupson/jxlviewer
However, for some reason there is an error with v0.3.0
Yeah I got the same problem with my other library, it is quite easy to fix : https://github.com/oupson/Kapng-Android/blob/master/jitpack.yml
jdk:
- openjdk17
?
Jitpack is still using jdk 8 when AGP require jdk 17
Oh.... Are there more issues you know of?
Well sometimes build time out and you can't restart it, but otherwise nothing I'm aware of
This should work (untested):
dependencies {
implementation 'com.github.oupson:jxlviewer:94fe98aaa4'
}
Thank you. Is this library better than others in some way? I can see this one for example: https://github.com/awxkee/jxl-coder
But I don't see a license there, and I don't see a way to downsample the image (to avoid using too much memory in case the image is huge) in the main page. Is it possible for jxl file format?
I wasn't aware there were other libraries for android, so I don't know which one is better. However jxl-coder seems to be able to encode jxl.
Down-sampling should to be possible with the jxl format.
I haven't checked the code here. Do you use down-sampling in the sample, or have some documentation about it? Maybe there is even some integration for Glide library?
No sorry I don't have any example. Down sampling could probably be down when decoding each frames. I'm not aware with any integration with the glide library.
I intend to invest more time to build a better library in the future, for the moment it is very simple.
Using BitmapFactory it's possible to get information about the image without actually saving the bitmap. And you can then know how much to down-sample it
As the title says.