Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/png_mimic/mod.ts>pngDecode

Mimic any binary to PNG.
Latest
function pngDecode
import { pngDecode } from "https://deno.land/x/png_mimic@v1.0.3/mod.ts";

Extract binary from png image. Input format is 24 bit color, gamma, no alpha, no filter.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = await pngEncode(bin);
const decode = await pngDecode(encode);

Parameters

data: Uint8Array

Returns

Promise<Uint8Array>