Delete whitespace in scanned document

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Palatinator
Posts: 1
Joined: 2018-11-26T00:32:12-07:00
Authentication code: 1152

Delete whitespace in scanned document

Post by Palatinator » 2018-11-26T00:37:26-07:00

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

snibgo
Posts: 11102
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Delete whitespace in scanned document

Post by snibgo » 2018-11-26T05:47:48-07:00

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".
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 24339
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Delete whitespace in scanned document

Post by fmw42 » 2018-11-26T11:15:44-07:00

I suspect you just want to turn the white into transparency.

Code: Select all

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

Post Reply