You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using jimp's quality method does not give a expected linear result. After passing the quality percentage above the range of 60-65, the image quality increases.
constbuffer=*JPEGimagebuffer*console.log('Before Compression Size is ',Buffer.byteLength(buffer))constdata=awaitjimp.read(buffer).then(image=>image.quality(65))buffer=awaitnewPromise((resolve,reject)=>{data.getBuffer((jimp.MIME_JPEG),(err,buff)=>{if(err)reject(err)console.log('After compression Size is ',Buffer.byteLength(buff))})})
Results in:
Before Compression Size is: 429
After Compression, Size is 744
The text was updated successfully, but these errors were encountered:
Using jimp's quality method does not give a expected linear result. After passing the quality percentage above the range of 60-65, the image quality increases.
Results in:
The text was updated successfully, but these errors were encountered: