Skip to content

Commit

Permalink
fix: make set_icc_profile function available
Browse files Browse the repository at this point in the history
  • Loading branch information
misl-smlz committed Sep 13, 2024
1 parent c708281 commit 4afeeca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/codecs/webp/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ impl<W: Write> WebPEncoder<W> {
}
}

/// Set the ICC profile to use for the image.
pub fn set_icc_profile(&mut self, icc_profile: Vec<u8>) {
self.inner.set_icc_profile(icc_profile);
}

/// Encode image data with the indicated color type.
///
/// The encoder requires image data be Rgb8 or Rgba8.
Expand Down

0 comments on commit 4afeeca

Please sign in to comment.