Add watermark tiling, rotation types, margin/scale controls
Wire tiled, margin, and scale UI controls to JobConfig and pass through to WatermarkConfig. Add tiled text and image watermark implementations that repeat across the full image. Add font family filesystem search for named fonts. Add WatermarkRotation enum.
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