Search code examples
phpimage-uploadinggeotagging

How do I obtain GeoTagging Info from an uploaded image


I'd like to build an app that takes (with permission of course) user-uploaded images and makes use of the geotagging info embedded in the image. I'm a PHP/Javascript developer...how do I obtain that info?


Solution

  • Cameras generally use exif headers to store GPS information.

    With PHP, the EXIF module allows you to read these headers.

    To activate this extension, you must compile PHP with --enable-exif.