How to use the quality function from jimp

Find comprehensive JavaScript jimp.quality code examples handpicked from public code repositorys.

1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
.then(img => {
    console.log(` getting ${fileName} map image...`);
    return img.quality(70) // set JPEG quality
        .write(outputPath + ".jpg"); // save
}).then(async () => {
    console.log(" Jimp.quality(70).write()");

    await sleep(100);
    // del old local resource if exist
    if (fs.existsSync(outputPath)) { fs.unlinkSync(outputPath); }
fork icon1
star icon3
watch icon1

+ 11 other calls in file