Deno.js Tutorial to Convert PNG/JPG Images to Webp Format Using Typescript Full Project For Beginners

 

 

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

 

 

DOWNLOAD FULL SOURCE CODE

Leave a Reply