[wp-trac] [WordPress Trac] #9257: EXIF GPS data
WordPress Trac
noreply at wordpress.org
Sun Dec 17 05:17:57 UTC 2017
#9257: EXIF GPS data
-------------------------------------------------+-------------------------
Reporter: B-Scan | Owner: desrosj
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future
Component: Media | Release
Severity: normal | Version: 2.7
Keywords: has-patch needs-testing dev- | Resolution:
feedback | Focuses:
-------------------------------------------------+-------------------------
Changes (by desrosj):
* owner: => desrosj
* status: new => assigned
Comment:
[attachment:9257.diff] updates the previous patch to apply cleanly after
[42343]. It also has the following adjustments:
- Coding standards fixes.
- Moves the latitude & longitude keys into an array stored in the
`location` key.
- Add the `wp_read_image_geo_data` filter. Returning a falsey value to
this filter will disable all processing of location data.
- Only adds the `location` key to the meta array if the parsing location
data is not disabled with the `wp_read_image_geo_data` filter.
- Limits the GPS decimal precision to 7 (practical limit of commercial
surveying).
- Updated other image meta tests to check for empty location info.
To address @melchoyce's concerns, these changes will only parse the
location data into image meta so that plugins and themes can utilize it.
We could expose the data in the admin on each image, but I think that is
best for a separate ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9257#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list