From Dev.to
Strip EXIF and GPS from a JPEG in the browser without re-encoding (~25 lines of JS)
Most "remove metadata" snippets you find draw the photo onto a and export it again. That works, but it re-compresses the image: you lose a bit of quality, the file size changes, and you get whatever...
