Skip to main content

@img/png@0.1.2
Built and signed on GitHub Actions

A image encoder/decoder for the PNG format

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.1.2)
interface PNGOptions

The options that specify the metadata of the encoding image.

Properties

The PNG spec only standardises one compression method, zlib, which is selected with the value zero.

The PNG spec only standardises one filter method, which is selected with the value zero.

The PNG spec offers either no interlacing, selected with the value zero, or Adam7 interlacing, selected with the value 1.

Add Package

deno add jsr:@img/png

Import symbol

import { type PNGOptions } from "@img/png";

---- OR ----

Import directly with a jsr specifier

import { type PNGOptions } from "jsr:@img/png";

Add Package

npx jsr add @img/png

Import symbol

import { type PNGOptions } from "@img/png";

Add Package

yarn dlx jsr add @img/png

Import symbol

import { type PNGOptions } from "@img/png";

Add Package

pnpm dlx jsr add @img/png

Import symbol

import { type PNGOptions } from "@img/png";

Add Package

bunx jsr add @img/png

Import symbol

import { type PNGOptions } from "@img/png";