mc_map2png 0.1.0

This Rust application transforms Minecraft map data from NBT format into a visual PNG image. Additionally, a WebAssembly module is available for converting images on the client side.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use mc_map2png::process_image_file;

fn main() {
    let args: Vec<String> = std::env::args().collect();
    if args.len() < 3 {
        eprintln!("Usage: {} <input> <output>", args[0]);
        std::process::exit(1);
    }

    // Use the function directly with `crate::`
    if let Err(e) = process_image_file(&args[1], &args[2]) {
        eprintln!("Error: {}", e);
        std::process::exit(1);
    }
}