jimp-dev/jimp

Autocrop not cropping surrounding black area

Open

#753 建立於 2019年6月18日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (785 fork)batch import
bughelp wantedsolution in issue

倉庫指標

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

描述

Large Black borders should have cropped out. I have adjusted the tolerance and have see no change in results. They are simply not getting cropped.

Latest Node and Jimp on a Raspberry Pi

   Jimp.read( "./scanimage.jpg", (err, img) => {
        if (err) throw err;
        let clean = img
        .scale(0.5)
        .quality(50)
        .autocrop()
        .write('./croppedimage.jpg')

test

貢獻者指南