fs_mod_parser::shared

Function convert_map_image

Source
pub fn convert_map_image(bin_file: Vec<u8>) -> Option<String>
Expand description

Load the map image resize, crop, and convert to webp

Returns the webp as a base64 string suitable for use with an <image src="..."> tag.

Supports DDS BC1-BC7 in one pass, in-memory