Enhance image handling and EXIF metadata processing in RecipeRoutes and ExifUtils

- Implemented image optimization in RecipeRoutes, resizing and converting uploaded images to WebP format while preserving metadata.
- Updated ExifUtils to support EXIF data handling for WebP images, ensuring compatibility with various image formats.
- Added a new method for optimizing images, allowing for better performance and quality in image uploads.
This commit is contained in:
Will Miao
2025-03-19 14:17:37 +08:00
parent 03dfe13769
commit c3aaef3916
4 changed files with 158 additions and 21 deletions

View File

@@ -4,14 +4,6 @@
transition: none !important; /* Disable any transitions that might affect display */
}
/* Ensure error messages maintain proper height and visibility */
.import-section .error-message {
min-height: 1.2em;
visibility: visible !important;
opacity: 1 !important;
display: block !important;
}
/* Import Mode Toggle */
.import-mode-toggle {
display: flex;
@@ -681,3 +673,12 @@
margin-right: 4px;
font-size: 0.9em;
}
/* Error message styling */
.error-message {
color: var(--lora-error);
font-size: 0.9em;
margin-top: 8px;
min-height: 20px; /* Ensure there's always space for the error message */
font-weight: 500;
}