Add WebP effort, AVIF speed controls, case conversion and regex rename

- Compress step: WebP Encoding Effort (0-6) and AVIF Encoding Speed (1-10)
- Rename step: Case Conversion combo (lowercase/UPPERCASE/Title Case)
- Rename step: Find and Replace group with regex pattern and replacement
This commit is contained in:
2026-03-06 13:19:11 +02:00
parent 7840765e5b
commit 32ea206c8c
2 changed files with 39 additions and 0 deletions

View File

@@ -118,11 +118,25 @@ pub fn build_compress_page(state: &AppState) -> adw::NavigationPage {
.active(false)
.build();
let webp_effort_row = adw::SpinRow::builder()
.title("WebP Encoding Effort")
.subtitle("0-6, higher is slower but smaller files")
.adjustment(&gtk::Adjustment::new(4.0, 0.0, 6.0, 1.0, 1.0, 0.0))
.build();
let avif_speed_row = adw::SpinRow::builder()
.title("AVIF Encoding Speed")
.subtitle("1-10, lower is slower but better compression")
.adjustment(&gtk::Adjustment::new(6.0, 1.0, 10.0, 1.0, 1.0, 0.0))
.build();
advanced_expander.add_row(&jpeg_row);
advanced_expander.add_row(&progressive_row);
advanced_expander.add_row(&png_row);
advanced_expander.add_row(&webp_row);
advanced_expander.add_row(&webp_effort_row);
advanced_expander.add_row(&avif_row);
advanced_expander.add_row(&avif_speed_row);
advanced_group.add(&advanced_expander);
content.append(&advanced_group);