Wire resize algorithm selection, overwrite behavior, and fix rotation/flip scope

This commit is contained in:
2026-03-06 15:17:59 +02:00
parent 0388d3a510
commit e871d47a80
7 changed files with 123 additions and 6 deletions

View File

@@ -46,6 +46,22 @@ impl ResizeConfig {
}
}
// --- Resize Algorithm ---
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum ResizeAlgorithm {
Lanczos3,
CatmullRom,
Bilinear,
Nearest,
}
impl Default for ResizeAlgorithm {
fn default() -> Self {
Self::Lanczos3
}
}
// --- Rotation / Flip ---
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
@@ -225,6 +241,21 @@ impl AdjustmentsConfig {
}
}
// --- Overwrite Behavior ---
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum OverwriteBehavior {
AutoRename,
Overwrite,
Skip,
}
impl Default for OverwriteBehavior {
fn default() -> Self {
Self::AutoRename
}
}
// --- Rename ---
#[derive(Debug, Clone, Serialize, Deserialize)]