Open Paul-Browne opened 4 years ago
@hipstersmoothie I also have this problem. I keep the size same with the original. Only lower the quality. But the size is bigger then Original. code:
var Jimp = require('jimp');
// open a file called "lenna.png"
Jimp.read('test1.jpg', (err, test) => {
if (err) throw err;
test
.resize(944, 320) // resize
.quality(70) // set JPEG quality
.write('test1-small.jpg'); // save
});
Could you please help why does it happen? Thanks a lot!
Expected Behavior
I expect the processed file size to be less than the original
Current Behavior
The processed file size is greater than the original
Failure Information (for bugs)
Even with
.quality(75)
and in some cases a smaller size then the original, the processed file is larger in bytes