Add watermark tiling, rotation types, margin/scale controls
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user