Skip to main content

Built and signed on GitHub Actions

Convert webp image to png

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
9 hours ago (0.0.3)

Convert a webp image to png

using image to convert webp image
using wasm-pack compiled to wasm
using @libs/bundle to bundle wasm

Usage

import { webp_to_png } from "@liuxspro/webp-to-png";
const webp_data = new Uint8Array([...])
console.log(await webp_to_png(webp_data))

Build

Build and bundle wasm

deno run -A jsr:@libs/bundle/wasm/cli/build wasm_webp_to_png

Switch to nightly toolchain:

cd wasm_webp_to_png
rustup override set nightly
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@liuxspro/webp-to-png

Import symbol

import * as webp_to_png from "@liuxspro/webp-to-png";

---- OR ----

Import directly with a jsr specifier

import * as webp_to_png from "jsr:@liuxspro/webp-to-png";

Add Package

npx jsr add @liuxspro/webp-to-png

Import symbol

import * as webp_to_png from "@liuxspro/webp-to-png";

Add Package

yarn dlx jsr add @liuxspro/webp-to-png

Import symbol

import * as webp_to_png from "@liuxspro/webp-to-png";

Add Package

pnpm dlx jsr add @liuxspro/webp-to-png

Import symbol

import * as webp_to_png from "@liuxspro/webp-to-png";

Add Package

bunx jsr add @liuxspro/webp-to-png

Import symbol

import * as webp_to_png from "@liuxspro/webp-to-png";