jimp-dev/jimp

Setting lower quality increases the file size

Open

#1,018 建立於 2021年6月2日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (785 fork)batch import
bugfile size issuehelp wanted

倉庫指標

Star
 (13,218 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected Behavior

Decrease the file size with decrement in image quality.

Current Behavior

Increase the file size with decrement in image quality.

Code

jimp.read("./forest-patrol.jpg", (err, lenna) => {
  if (err) throw err;
  lenna
    .quality(60) // set JPEG quality
    .write("./forest-patrol-jimp-mini.jpg"); // save
});

bug-report Here, we can see that original image forest-patrol.jpg is smaller than the processed image forest-patrol-jimp.jpg

貢獻者指南