We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7edd42 commit 4a07659Copy full SHA for 4a07659
apps/desktop/src-tauri/src/export.rs
@@ -189,8 +189,7 @@ pub struct ExportPreviewResult {
189
}
190
191
fn bpp_to_jpeg_quality(bpp: f32) -> u8 {
192
- let quality = ((bpp - 0.04) / (0.3 - 0.04) * (95.0 - 40.0) + 40.0).clamp(40.0, 95.0) as u8;
193
- quality
+ ((bpp - 0.04) / (0.3 - 0.04) * (95.0 - 40.0) + 40.0).clamp(40.0, 95.0) as u8
194
195
196
#[tauri::command]
0 commit comments