feat(compression): add zlib compression for scene files and image optimization
- Add flate2 dependency for zlib compression support in Rust backend - Implement compressed scene file format with magic number (PURGIFZ1) for format detection - Add backward compatibility for loading uncompressed legacy scene files - Convert scene JSON to compact format (no indentation) to reduce file size - Add image compression utilities with configurable quality and dimensions - Implement image size detection and compression necessity checking - Add helper functions for base64 image size calculation and MIME type detection - Disable global Tauri object in web context for security - Reduce memory footprint for large scene files and high-resolution images through compression
This commit is contained in:
1
src-tauri/Cargo.lock
generated
1
src-tauri/Cargo.lock
generated
@@ -3559,6 +3559,7 @@ version = "0.1.1"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"base64 0.22.1",
|
||||
"flate2",
|
||||
"image",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
||||
Reference in New Issue
Block a user