Integrating ExifTool into phpBB (php) to extract GPS coordinate from photos

Started by xiaolu, March 16, 2017, 08:38:12 AM

Previous topic - Next topic

xiaolu

Hi, I found this execellent ExifTool! And here is what I'd like to do with it, but not sure how:

I am running a phpBB (version 3.0.x) message board. Users can upload photos with a post. I want to extract and show GPS coordinate from such an uploaded photo (if the photo has embedded EXIF data including GPS data).

I know php has exif_read_data() which shall extract EXIF data including GPS data, but it does not work for me at all.

Hence I'd like to have this ExifTool integrated into my message board (again solely for the purpose of extracting and showing a photo's GPS data)

Wonder if anyone would offer some guide/insight? I do have some programming skill, but here I don't know much of this ExifTool's...

Thanks in advance.

Phil Harvey

There are two PHP interfaces for ExifTool listed in the Programming section of the ExifTool home page.

Perhaps looking at these may be helpful.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

xiaolu

Quote from: Phil Harvey on March 16, 2017, 09:18:07 AM
There are two PHP interfaces for ExifTool listed in the Programming section of the ExifTool home page.

Perhaps looking at these may be helpful.

- Phil
Thank you for the info, and I will take a look....