Mbtiles with avif images

Started by Fetnat, June 25, 2023, 08:29:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fetnat

Hello,
I have been using oruxmaps for many years with maps in mbtiles format that I create myself with Qgis.
In 2019 came the avif or AV1 image format. With a few lines of nodejs code, I was able to convert the images in an mbtiles base from png to avif. While maintaining very, very acceptable quality, I reduced the size of the database by 88%!

This mbtiles database is perfectly usable with leaflet, which runs in a browser but refuses to load with oruxmaps.
Would it be possible to modify the application so that it accepts mbtiles files containing avif images?
Best regards

Translated with www.DeepL.com/Translator (free version)

12 novembre 2023
I just redid a test using a .mbtiles file with .png tiles.
I only transformed the tiles into .avif using nodejs and sharp with the avif({chromaSubsampling: '4.2.0', effort:1}) option.
The sqlite file size is reduced by over 85% and the difference in quality is barely noticeable on a smartphone.
The sqlite base can be used as is (no need to change the metadata).
The first load of the the map seems slightly longer (more work for the decoder).

Oppo find x2 pro
Android 13