jimp-dev/jimp

Autocrop not cropping surrounding black area

Open

#753 ouverte le 18 juin 2019

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (785 forks)batch import
bughelp wantedsolution in issue

Métriques du dépôt

Stars
 (13 218 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur