Getting a clean capture in the first place
Sign on plain white unlined paper with a black or dark blue pen, and make the signature reasonably large — the capture will be reduced, and a small signature enlarged to fit is soft and ragged. A scanner is better than a camera; if using a camera, get even light with no shadow across the paper.
Crop tightly to the signature with a small consistent margin. Portals that overlay the signature on a document expect it to fill the supplied image, and one floating in a large white field appears tiny on the printed form.