GPS on map
Pull EXIF GPS from a photo and show it on an OpenStreetMap map (with opt-in tile loading).
Reads GPS coordinates from a JPEG photo’s EXIF and shows where it was taken. The parser works at the byte level: finds the APP1 segment with the Exifx00x00 marker, parses the TIFF header (accounting for little-/big-endian), walks the main IFD to tag 0x8825 (pointer to the GPS IFD), pulls latitude/longitude tags in DMS form (degrees-minutes-seconds) and hemisphere references (N/S/E/W), and converts to decimal degrees. Altitude and capture date are extracted as well. The coordinates themselves are shown IMMEDIATELY as text — no network request is made for that. To see them on a real map, a separate “Show map here” button triggers tile loading from tile.openstreetmap.org (the standard OSM map, a 3×3 grid of tiles at zoom 14). This is a deliberate privacy trade-off: showing “where the photo was taken” is only meaningful on an actual map, and on tile load the tile server sees your IP and the approximate region of the request (but never the photo itself or any identifiers). The button is opt-in and the disclosure is explicit. Bonus: a “Strip all EXIF and download clean JPEG” button does byte-surgery removing every APP1 segment without re-encoding pixels. For surgical removal of individual fields the dedicated exif-remover tool is available. Processing happens in the browser, the file never leaves your device.