jimp-dev/jimp

Setting lower quality increases the file size

オープン

#1,018 opened on 2021/06/02

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (785 件のフォーク)batch import
bugfile size issuehelp wanted

Repository metrics

Stars
 (13,218 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド