FurryWolfX / deno_webp_converter

a tool for converting images to webp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deno_webp_converter

a tool for converting images to webp

usage

import { convert } from "https://deno.land/x/deno_webp_converter/mod.ts"

await convert("./logo.png", "./logo.webp", "-q 80", "-v");

where is the bin?

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);

About

a tool for converting images to webp

License:MIT License


Languages

Language:TypeScript 100.0%