a tool for converting images to webp
import { convert } from "https://deno.land/x/deno_webp_converter/mod.ts"
await convert("./logo.png", "./logo.webp", "-q 80", "-v");
By default, it will download to ${Deno.cwd()}/bin
.
You can call setBinDirPath
to change the default path.
import { setBinDirPath } from "./src/cwebp.ts";
setBinDirPath(YOUR_PATH);