“Your attachment is over 2 MB.” Drop the photo in, choose the quality, save. The photo stays on your machine, including the one of your ID card.
What it does not do: Lossy compression is final: what is taken out does not come back, and running the same photo through twice degrades it twice. Keep the original. Re-encoding an already compressed image does not always make it lighter, and the screen says so rather than handing you a bigger file. And there is no AI upscaling here: it would need a model of several dozen megabytes downloaded from a third-party server.
Nothing is uploaded. Cut your network connection once this page has loaded: the tool keeps working. How to check it yourself.