smallest-jpeg

2.0.0 • Public • Published

smallest-jpeg

npm version Build Status

A Buffer of the theoretically smallest JPEG

const smallestJpeg = require('smallest-jpeg');
//=> <Buffer ff d8 ff db 00 43 00 03 02 02 02 02 02 03 02 02 02 03 ...>
 
smallestJpeg.length; //=> 107

Suitable for test fixtures.

const {width, height} = someJpegParserFunction(smallestJpeg);
 
console.assert(width === 1);
console.assert(height === 1);

Installation

Use npm.

npm install smallest-jpeg

API

const smallestJpeg = require('smallest-jpeg');

smallestJpeg

Type: Buffer

License

ISC License © 2018 Shinnosuke Watanabe

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    0
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i smallest-jpeg

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

2.66 kB

Total Files

4

Last publish

Collaborators

  • shinnn