GPS 2 Photos
GPS 2 Photos
Description
GPS 2 Photos lets you view, add, or edit EXIF GPS coordinates for JPEG and WebP images in the WordPress Media Library and galleries powered by NextGEN, Envira, FooGallery, or Modula.
It displays existing GPS data as editable fields (Media Library only) or provides a button to add or update coordinates. Clicking the button opens a map interface where you can set a location by simply clicking on the map, searching for a place, or typing it in manually.
This plugin extends the functionality of the Geo 2 Maps add-on for NextGEN Gallery, which displays maps with photos, galleries, or albums using EXIF GPS data.
The plugin is using Microsoft Azure Maps and requires a free Azure Maps API Key to function as described below.
To amend EXIF GPS coordinates, use the PHP Exif Library (PEL) by Martin Geisler. (Copyright (C) 2004–2006 Martin Geisler. Licensed under the GNU GPL. https://github.com/FileEye/pel )
Features
- WordPress Media Library & NextGEN Gallery Integration: Works seamlessly inside the standard Media Library and also adds an “Add/Amend GPS” option to images in the NextGEN Gallery management page.
- Gallery Support: Integrates with popular gallery plugins, including NextGEN Gallery, Envira Gallery, FooGallery, and Modula.
- View GPS Data: See a map with a pin for any image that has GPS coordinates in its EXIF data for JPEG photos and EXIF/XMP for WebP images.
- Edit & Add GPS Data: Easily add or change an image’s location by dragging the pin or clicking anywhere on the map.
- Interactive Map Modal: A clean and simple map interface with a location search bar opens in a modal window.
- Backup & Restore: The plugin automatically backs up original GPS data, allowing you to restore it with a single click.
- Azure Maps Integration: Utilizes the powerful and reliable Azure Maps for displaying map tiles.
External Services
This plugin relies on Microsoft Azure Maps to display interactive map in the WordPress admin area and obtain GPS coordinates.
It’s using additional modules to enable search for location functionality (geocoding), browser‑based geolocation and Fullscreen option.
What data is sent and when
Plugin sends sample geolocation query to the Azure REST server to validate the API Key.
When the map loads or when the user interacts with it, the browser sends requests to Azure Maps servers. These requests may include:
* Search queries entered by the user or location coordinates
* Standard HTTP request data (e.g., IP address, browser type, OS)
* Map tile requests triggered by zooming or panning
If the user chooses to use the map’s “Locate Me” button, their location is only shared if they explicitly grant permission in their browser.
API key and account requirement
To use this plugin, the site owner must create a free Azure Maps account and generate an API key.
Azure Maps offers a free tier with generous limits that typical individual or small‑site usage is very unlikely to exceed.
Legal documentation
Azure Maps is provided by Microsoft. Relevant policies:
* Terms of Use
* Privacy Policy
* Azure free account creation
Installation
- Install GPS 2 Photos from the plugins repository or download and extract the zip file into the
wp-content/plugins/directory of your WordPress installation. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Acquire a free Azure Maps API Key from Microsoft Azure at https://azure.microsoft.com. You can find a link on the plugin’s settings page.
- In your Azure account, add your domain to the CORS allowed origins (e.g.,
https://www.yourdomain.com). - Go to the admin panel (
Settings -> GPS 2 Photos) and paste the API Key into the corresponding field. - Configure any other options as you require.
Faq
Go to https://azure.microsoft.com and sign up for a free account. You will need a Microsoft account. Follow the instructions to create a new Azure Maps account and get the subscription key. A link to a detailed guide is available on the plugin’s settings page.
Important: Remember to add your website domain to the CORS Allowed Origins field in your Azure Maps account settings (e.g., https://www.yourdomain.com).
Azure Maps offers a generous free tier. For example, you get thousands of free map tile transactions per month, which is more than enough for most websites.
- WordPress Media Library: Navigate to your Media Library (either list or grid view). In list view, you’ll see a button in the “GPS Location” column. In grid view, you’ll find the button in the “Attachment Details” panel.
- NextGEN Gallery: Navigate to a gallery via the “Manage Galleries” page. You will see an “Add/Amend GPS” link in the actions bar for each image.
- Envira, FooGallery, Modula: On the gallery edit screen, you will find a button to add/amend GPS coordinates for each image.
When you search for a location, the map may display several pins if multiple matches are found. You can click on any of these result pins to see more details in a popup. When you click on a pin, it will change colour to indicate it’s selected, and its coordinates will automatically populate the Latitude and Longitude fields. You can then save these coordinates to your image.
Clicking the button or link will open a modal window with a map. You can then view, edit, or add GPS coordinates.
Yes! That’s one of its main features. You can easily add GPS coordinates to any image by opening the map modal and clicking on the desired location. The latitude and longitude will be filled in automatically, and you can then save them to the image.
If you enable the “Backup Existing Coordinates” option in the plugin settings, editing an image that already has GPS data will save the original coordinates into the image’s EXIF “User Comment” field for JPEG files or custom XMP namespace for WebP files. This prevents the original data from being lost. A “Restore Original Coordinates” button will then appear in the map modal, allowing you to revert to the backed-up coordinates at any time.
Reviews
Changelog
1.0.0 – 2026-02-19
- Initial release.