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 »

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: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Delete whitespace in scanned document

Post 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".
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Delete whitespace in scanned document

Post by fmw42 »

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

Code: Select all

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