DroidFS icon indicating copy to clipboard operation
DroidFS copied to clipboard

(Feature Request) Add JpegXL previews

Open DorianBenjamin opened this issue 1 year ago • 4 comments

Please make .jxl files viewable like with jpg and png.

DorianBenjamin avatar Sep 22 '23 20:09 DorianBenjamin

DroidFS currently uses Glide to display images. It seems that Glide cannot display jxl files as of today.

Supporting jxl in DroidFS would therefore require manually implementing a decoder for this format or adding a dependency to a library that could do so. I don't think it's worth it at the moment.

As a workaround, you can install a trustworthy app that can display jxl images. Within DroidFS v2.1+, you can open your images with this app. If the files are small enough, they will only be shared via memory, without ever being written to the disk.

hardcore-sushi avatar Sep 24 '23 17:09 hardcore-sushi

Thanks! I'll use that for the time being. Whats the biggest filesize that would still be loaded into memory and not written to disk?

DorianBenjamin avatar Sep 27 '23 14:09 DorianBenjamin

This feature would be not or less necessary if a picture viewer app would enable access to the Android Storage Provider system - alas, most apps like F-Stop just the regular file system.

If someone stumbles upon an an picture viewing app that can connect to the file system exposed by DroidFS' "Expose Open Volumes" feature please let us know...

gitoss avatar Nov 02 '23 04:11 gitoss

@gitoss I think the best solution at the moment is to use the "Open with external app" feature. No need to expose volumes.

Whats the biggest filesize that would still be loaded into memory and not written to disk?

It depends. Currently, here's how it's implemented: https://github.com/hardcore-sushi/DroidFS/blob/719faa31ee3feddf915dde36738d994ee723a146/app/src/main/java/sushi/hardcore/droidfs/EncryptedFileProvider.kt#L121 Where size is the size of the file and memoryInfo.availMem is the currently available memory. In the future, a toggle could be added in the settings to let the user choose their preferred export location.

hardcore-sushi avatar Nov 04 '23 12:11 hardcore-sushi