From 2a79ae20d3605a16d26f2403b1b57ee2fed328e4 Mon Sep 17 00:00:00 2001 From: caleb Date: Sun, 15 Oct 2023 01:24:56 +0300 Subject: [PATCH] wasm: Fix compilation error Signed-off-by: caleb --- zune-image/src/filters/unsharpen.rs | 2 +- zune-wasm/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zune-image/src/filters/unsharpen.rs b/zune-image/src/filters/unsharpen.rs index 0de4f620..240e8736 100644 --- a/zune-image/src/filters/unsharpen.rs +++ b/zune-image/src/filters/unsharpen.rs @@ -29,7 +29,7 @@ impl Unsharpen { /// Create a new unsharp mask /// /// # Arguments - /// - sigma: This value is passed to the gaussian filter,constult [it's documentation](crate::filters::gaussian_blur::GaussianBlur) + /// - sigma: This value is passed to the gaussian filter,consult [it's documentation](crate::filters::gaussian_blur::GaussianBlur) /// on how to use it /// /// - threshold: If the result of the blur and the initial image is greater than this, add the difference, otherwise diff --git a/zune-wasm/src/lib.rs b/zune-wasm/src/lib.rs index f608b21c..8e1f8303 100644 --- a/zune-wasm/src/lib.rs +++ b/zune-wasm/src/lib.rs @@ -151,7 +151,7 @@ impl WasmImage { } /// Binarize an image - pub fn threshold(&mut self, threshold: u16) { + pub fn threshold(&mut self, threshold: f32) { let ops = Threshold::new(threshold, ThresholdMethod::Binary); self.execute_ops(&ops); }