Package Exports
- smallest-png
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smallest-png) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
smallest-png
A Buffer of the theoretically smallest PNG
const smallestPng = require('smallest-png');
//=> <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 01 00 00 00 01 08 06 00 00 00 1f ...>
smallestJpeg.length; //=> 67Suitable for test fixtures.
const {width, height} = somePngParserFunction(smallestPng);
console.assert(width === 1);
console.assert(height === 1);Installation
npm install smallest-pngAPI
const smallestPng = require('smallest-png');smallestPng
Type: Buffer
Related
- smallest-jpeg — A JPEG version
License
MIT No Attribution © 2019 Shinnosuke Watanabe