Wire resize algorithm selection, overwrite behavior, and fix rotation/flip scope
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user