Why this needs no model
A signature on paper is dark ink on light paper. The question for every pixel is simply whether it is ink or paper, and the answer is in its brightness. The page looks at the brightness of every pixel in the photo, finds the level that best separates the two groups, and makes everything brighter than that transparent.
A pixel near that level is made partly transparent rather than switched on or off, which keeps the curves of the pen stroke smooth instead of stepped. The result is cropped to the ink with a small margin, so it drops into a form or a document at the right size.
Using the signature
A cropped transparent PNG of a signature is usually a few kilobytes, well under the limits upload forms set.
| Use | Tip |
|---|---|
| Online forms asking for a signature upload | Check the size limit and the pixel dimensions the form states |
| PDFs and Word documents | Insert as a picture and set it to sit in front of the text |
| Email signatures | Export in black; blue ink can look like a link |
Limits
- Lined or patterned paper. The lines are dark enough to be read as ink; sign on plain paper.
- A signature over printed text, such as on a form. The printed text is kept too; sign on a blank sheet instead.