1.1.7 • Published 4 years ago

netpbm-parser v1.1.7

Weekly downloads
8
License
MIT
Repository
-
Last release
4 years ago

NetPbm Parser

A parser of PBM, PGM, and PPM images

Features

  • Zero Dependency
  • Supports P1, P2 and P3
  • Supports magnification

How to Use

import { parse } from 'netpbm-parser'

// content is the content of your ASCII-based image
// mag is the magnification of the output data in Uint8ClampedArray

const doc: Result = parse(content, mag) // mag defaults to 1

// interface Result {
//   type: ImageType;
//   dimension: {
//     width: number;
//     height: number;
//   };
//   max: number;
//   rawData: string;
//   rgba: Uint8ClampedArray
// }
1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago