npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

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

install

npm i smallest-jpeg

Downloadsweekly downloads

317

version

2.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability