vinyl-smallest-jpeg
Create a vinyl file object of theoretically smallest JPEG
var vinylSmallestJpeg = ; var fixture = ;fixturecontents; //=> <Buffer ff d8 ff e0 00 10 4a 46 49 ...>fixturecontentslength; //=> 125
It is useful to test image-related gulp plugins.
Installation
npm install vinyl-smallest-jpeg
API
var vinylSmallestJpeg = ;
vinylSmallestJpeg([option])
option: Object
Return: Object
(vinyl file object)
It creates a vinyl object whose contents
property is a buffer of smallest JPEG (125 bytes).
option
buffer
Type: Boolean
Default: true
If you set this option false
, contents
property becomes a Readable Stream which emits a JPEG chunk.
var vinylSmallestJpeg = ; ; //=> true; //=> true
License
Copyright (c) 2014 Shinnosuke Watanabe
Licensed under the MIT License.