Add watermark tiling, rotation types, margin/scale controls

This commit is contained in:
2026-03-06 17:36:07 +02:00
parent 3e6a539749
commit 646a698ac1
5 changed files with 181 additions and 5 deletions

View File

@@ -204,15 +204,28 @@ pub enum WatermarkConfig {
opacity: f32,
color: [u8; 4],
font_family: Option<String>,
rotation: Option<WatermarkRotation>,
tiled: bool,
margin: u32,
},
Image {
path: std::path::PathBuf,
position: WatermarkPosition,
opacity: f32,
scale: f32,
rotation: Option<WatermarkRotation>,
tiled: bool,
margin: u32,
},
}
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum WatermarkRotation {
Degrees45,
DegreesNeg45,
Degrees90,
}
// --- Adjustments ---
#[derive(Debug, Clone, Serialize, Deserialize)]