My website displays JPEG images from a folder and accompanying text from another folder using a PHP script. Please see <[url removed, login to view]>? for an example.
[url removed, login to view] sets variables and calls another PHP script responsible for actually returning the images in a folder in the same directory as viewer.php. If a thumbnail is clicked on, a larger image opens and the text is displayed beneath and the time and date of posting is displayed above.
Images in one folder are paired with text in another folder by sharing the same file name which is derived from the epochtime that the image was posted.
When a full-size image is viewed, next to the time and date of posting above the image, I would like a link displayed if the image contains EXIF latitude and longitude (GPS) coordinates. The URL would be in the format
[url removed, login to view] LATITUDE,DECIMAL LONGITIDE&spn=0.005636,0.011996&t=k&z=50&hl=en? so that when the link is clicked, a new window would open displaying a Google map of where the picture was taken. If no latitude/longitude EXIF data is found, I would
like no link to appear at all.
My PHP installation does not have the EXIF parser enabled and because I am on a shared server, I do not have user rights to change this. However, I have found some PHP script called 'EXIFER' that will parse various EXIF data and works with the particular make of camera I currently use (a Sony Ericsson C905 Cybershot camera-phone).
I have attached the EXIFER PHP script and would like this adapted so that it will work with my image display script to create the Google maps link I decscribe.
I need a coder to:
1) Adapt the PHP EXIF parser script called 'EXIFER' so that it can create variables? for GPS latitude and longitude coordinates (where the EXIF data exists) for images displayed by my existing PHP image viewer script.
2) Create a URL from this parsed GPS data to be positioned to the right of the date/time of posting above an image being viewed from these variables. The URL will link to Google Maps. No URL will appear at all if no GPS data can be found in the JPEG.
I have attached the PHP script 'EXIFER' which needs to be adapted. It works but in it's current format, returns much more EXIF data than I need and just prints it out. This is the script that needs to be adapted to work with my PHP viewer script.
I need someone who is experienced in writing PHP script, ? understands what I mean by EXIF data (data embedded in JPEG images) and understands what I am trying to achieve.