Wire resize algorithm selection, overwrite behavior, and fix rotation/flip scope
This commit is contained in:
@@ -12,6 +12,7 @@ pub struct ProcessingJob {
|
||||
#[serde(skip)]
|
||||
pub sources: Vec<ImageSource>,
|
||||
pub resize: Option<ResizeConfig>,
|
||||
pub resize_algorithm: ResizeAlgorithm,
|
||||
pub rotation: Option<Rotation>,
|
||||
pub flip: Option<Flip>,
|
||||
pub adjustments: Option<AdjustmentsConfig>,
|
||||
@@ -20,6 +21,7 @@ pub struct ProcessingJob {
|
||||
pub metadata: Option<MetadataConfig>,
|
||||
pub watermark: Option<WatermarkConfig>,
|
||||
pub rename: Option<RenameConfig>,
|
||||
pub overwrite_behavior: OverwriteBehavior,
|
||||
pub preserve_directory_structure: bool,
|
||||
pub progressive_jpeg: bool,
|
||||
pub avif_speed: u8,
|
||||
@@ -32,6 +34,7 @@ impl ProcessingJob {
|
||||
output_dir: output_dir.as_ref().to_path_buf(),
|
||||
sources: Vec::new(),
|
||||
resize: None,
|
||||
resize_algorithm: ResizeAlgorithm::default(),
|
||||
rotation: None,
|
||||
flip: None,
|
||||
adjustments: None,
|
||||
@@ -40,6 +43,7 @@ impl ProcessingJob {
|
||||
metadata: None,
|
||||
watermark: None,
|
||||
rename: None,
|
||||
overwrite_behavior: OverwriteBehavior::default(),
|
||||
preserve_directory_structure: false,
|
||||
progressive_jpeg: false,
|
||||
avif_speed: 6,
|
||||
|
||||
Reference in New Issue
Block a user