We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936cc55 commit e3ccb5fCopy full SHA for e3ccb5f
1 file changed
components/landing/live-demo-code.mdx
@@ -32,7 +32,7 @@ impl Transformer {
32
}
33
34
#[napi]
35
- pub fn webp(&self) -> Result<Uint8Array> {
+ pub fn to_webp(&self) -> Result<Uint8Array> {
36
let image = image::load_from_memory(&self.inner)?;
37
let webp = image.to_webp().map_err(|e| Error::from(e.to_string()))?;
38
Ok(webp.into())
0 commit comments