png-to-jpeg
A imagemin-compatible png-to-jpeg converter in pure javascript
Install
$ npm install --save png-to-jpeg
Usage
With imagemin:
const imagemin = ;const pngToJpeg = ; ;
Or manually:
const fs = ;const pngToJpeg = ; let buffer = fs;buffer;
API
pngToJpeg([options])(buffer)
options
quality
Type: integer
Default: 50
Set a quality preset. Any integer between 1 - 100 is allowed.
buffer
Type: buffer
Buffer to optimize.
License
MIT © Marek Ventur marekventur@gmail.com