Phone photos can leak GPS location; stripping EXIF data in the browser before upload
Most smartphone photos embed EXIF metadata that can include camera details, timestamps, and exact GPS coordinates. Large platforms typically remove this data on upload, but personal apps, small forums, file-sharing links, and email attachments often do not. The article suggests that developers accepting user photos can strip this metadata on the user's device before transmission. Two browser-based approaches are described: re-encoding the image through a canvas, which discards metadata but may slightly reduce JPEG quality and drop colour profiles, and removing the APP1 segment from JPEG files, which preserves the image data. The author also recommends stripping metadata on the server, since client-side protection can be bypassed by calling an API directly.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in