jimp-dev/jimp

Autocrop not cropping surrounding black area

Open

#753 aperta il 18 giu 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (785 fork)batch import
bughelp wantedsolution in issue

Metriche repository

Star
 (13.218 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor