martin-core 0.16.0

Basic building blocks of MapLibre's Martin tile server.
Documentation
1
2
3
4
5
6
7
8
9
//! Glue that teaches the `image` crate about raster codecs it doesn't support natively.

/// Makes `image::load_from_memory` (and `ImageReader::with_guessed_format`) understand JPEG XL.
pub fn ensure_jxl_decoding_hook() {
    static REGISTERED: std::sync::Once = std::sync::Once::new();
    REGISTERED.call_once(|| {
        jxl_oxide::integration::register_image_decoding_hook();
    });
}