feat: add multilingual support and improve image compression logic - #19
Merged
Conversation
- Introduced multiple languages and added new keys ('selectFiles', 'selectFolder') to all language files.
- Refactored `ImageService` to enhance image compression logic:
- Added `CompressionParams` for cleaner parameter handling.
- Improved EXIF metadata handling with `read_exif` and `inject_exif`.
- Simplified geometry application via the `apply_geometry` function.
- Optimized output path resolution and encoding logic.
- Updated theming logic in `theme_service.rs` for concise code.
- Added dropdown support to `Cargo.toml` for enhanced UI components.
- Enhanced view rendering in `main_view.rs`.
- Implemented collision avoidance for output paths by appending numeric suffixes (e.g., `_2`, `_3`) to ensure unique file names, avoiding concurrent write conflicts. - Enhanced `CompressionParams` with an `output_path_override` option for pre-resolved paths. - Updated `ImageService` to respect `output_path_override` for more flexible path determination. - Refactored concurrent compression tasks to handle disambiguated output paths.
… spelling - Added detailed error messages for directory reading failures in `app.rs` to improve user feedback. - Fixed potential entry errors when processing files and ensured robust error handling. - Standardized spelling of "serialize" and "deserialize" in `settings.rs` and `theme_service.rs` for consistency.
- Replaced `std::path::Path` with `std::path::PathBuf` for cleaner path manipulation. - Simplified extension and stem extraction to avoid redundant parent directory logic. - Updated dropdown visibility logic in compression flow for improved UI consistency.
- Replaced string comparison with `Theme` enum matching for cleaner and more robust logic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ImageServiceto enhance image compression logic:CompressionParamsfor cleaner parameter handling.read_exifandinject_exif.apply_geometryfunction.theme_service.rsfor concise code.Cargo.tomlfor enhanced UI components.main_view.rs.