Page 1 of 1

Delete whitespace in scanned document

Posted: 2018-11-26T00:37:26-07:00
by Palatinator
Hello guys,

i'm a german imagemagick newbie and google got me no answer to my problem...

I want to scan a signature on a white paper-sheet an select just the handwritten part, the whitespace around that sig has to be deletet.
Is that possible, and if yes - how???

Thanks a lot

Re: Delete whitespace in scanned document

Posted: 2018-11-26T05:47:48-07:00
by snibgo
Please say what version of IM you use, on what platform. A sample input image would help us understand what you want.

Perhaps "-trim" does what you want, perhaps "-fuzz N% -trim".

Re: Delete whitespace in scanned document

Posted: 2018-11-26T11:15:44-07:00
by fmw42
I suspect you just want to turn the white into transparency.

Code: Select all

convert image -fuzz XX% -transparent white output.png