Skip to main content
Home

@nktkas/bmp@1.3.0
Built and signed on GitHub Actions

Fast and lightweight BMP image encoder/decoder.

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
a week ago (1.3.0)
interface CompressedImageData

Compressed image data extracted from BMP

Properties

Image width in pixels

Image height in pixels

Compression type:

  • 0 = BI_RGB
  • 1 = BI_RLE8
  • 2 = BI_RLE4
  • 3 = BI_BITFIELDS
  • 4 = BI_JPEG
  • 5 = BI_PNG
  • 6 = BI_ALPHABITFIELDS

Raw compressed data

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";
or

Import directly with a jsr specifier

import { type CompressedImageData } from "jsr:@nktkas/bmp";

Add Package

pnpm i jsr:@nktkas/bmp
or (using pnpm 10.8 or older)
pnpm dlx jsr add @nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";

Add Package

yarn add jsr:@nktkas/bmp
or (using Yarn 4.8 or older)
yarn dlx jsr add @nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";

Add Package

vlt install jsr:@nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";

Add Package

npx jsr add @nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";

Add Package

bunx jsr add @nktkas/bmp

Import symbol

import { type CompressedImageData } from "@nktkas/bmp";