Without recompressing
JPEG, PNG, WebP, GIF, HEIC, AVIF, MP4, MOV, M4V, WebM and MKV are rewritten in place. The picture, video and audio bytes are copied exactly, so quality does not change. Animation and the GIF loop count stay. A font attached to a video stays; a cover image does not.
The one exception
There is no lossless way to bake a rotation into a JPEG. When a photo’s orientation isn’t “normal”, it is re-saved upright by default. Choose “Leave every pixel untouched” to skip that, knowing some viewers will show it on its side, or keep a single orientation tag so they still rotate it.
Re-saved instead
TIFF, BMP and anything else this browser can display are decoded and saved as a fresh JPEG or PNG. Metadata does not survive that, but the file is no longer the original. Formats the browser can’t read at all, such as most camera RAW files, are left alone and reported.