jimp-dev / jimp-dev/jimp

Autocrop not cropping surrounding black area

Open
#753 3 comments 0 reactions 0 assignees View on GitHub
bug help wanted solution in issue
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/13667282/59712244-72ff3b80-91d2-11e9-86d2-4895aeaea359.jpeg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.