Start with the least compressed JPEG
Repeated saving introduces blocks, ringing, and color noise around text and lines. Use the original camera export, scan, or highest-quality JPEG available rather than an image downloaded from a messaging app or repeatedly recompressed online.