From 4afeeca789560f4a625064186af30a547c3c11b8 Mon Sep 17 00:00:00 2001 From: Michael Seele Date: Fri, 13 Sep 2024 10:10:09 +0000 Subject: [PATCH] fix: make set_icc_profile function available --- src/codecs/webp/encoder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/codecs/webp/encoder.rs b/src/codecs/webp/encoder.rs index 10f5803305..79ee7b7f21 100644 --- a/src/codecs/webp/encoder.rs +++ b/src/codecs/webp/encoder.rs @@ -20,6 +20,11 @@ impl WebPEncoder { } } + /// Set the ICC profile to use for the image. + pub fn set_icc_profile(&mut self, icc_profile: Vec) { + self.inner.set_icc_profile(icc_profile); + } + /// Encode image data with the indicated color type. /// /// The encoder requires image data be Rgb8 or Rgba8.