2

I want to save GEOLOCATION in image using php. Say i have LAT and LNG and want to save in image so google can find image and show on map.

How can i do that.. I tried many way but get nothing.

anyone know, help me.

Yasir
  • 101
  • 2
  • 11
  • `create table foo (lat float, long float)`. – Marc B Sep 29 '14 at 19:46
  • i don't want to save in db. want to save in image itself. – Yasir Sep 29 '14 at 19:48
  • You will need to write this data to the images EXIF. This can be challenging but this library for reading and writing EXIF will definitely help you. – urnotsam Sep 29 '14 at 19:56
  • Have you looked at ImageMagick:http://www.imagemagick.org/ to see what they offer? – Mr. Concolato Sep 29 '14 at 19:57
  • How i write GPS data to images EXIF. I try and save postcode, city and country but not save the GPS data. If anyone have sample code please paste here so i can get idea from that. – Yasir Sep 29 '14 at 20:01
  • Check these links [1]: http://stackoverflow.com/questions/5384962/writing-exif-data-in-php [2]: http://stackoverflow.com/questions/229446/how-do-i-add-exif-data-to-an-image Good luck. – Carca Sep 29 '14 at 20:02
  • Or see: http://sharpbang.wordpress.com/2013/08/18/adding-exif-data-using-php – KIKO Software Sep 29 '14 at 20:03
  • [PelTag](http://lsolesen.github.io/pel/doc/PEL/PelTag.html) seems to have all Geo data tags you need. It seems that [PEL](https://github.com/lsolesen/pel) is not maintained , but it should still work. – BojanT Sep 29 '14 at 20:26

0 Answers0