Problem extracting exif GPS data from images
-
Hi there,
I’ve been tinkering with trying to extract GPS EXIF data for a few days and have hit a brick wall. I thought that maybe I might be able to borrow some of the brainpower expressed here 🙂
I’m using a test image that I know has GPS EXIF data included in it. I can use my mac’s preview app to display it. I upload it to wordpress and try to extract it, but there is no GPS data in the results I get from the exif_read_data() function. I’m baffled.
Here is the function call I’m using to extract the EXIF data:
$exif = @exif_read_data( $_FILES[‘media’][‘tmp_name’], 0, true );
Here are the contents of the $exif variable after this call:
exif: Array
(
[FILE] => Array
(
[FileName] => php35zLOg
[FileDateTime] => 1269514888
[FileSize] => 129219
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, EXIF
)[COMPUTED] => Array
(
[html] => width=”700″ height=”525″
[Height] => 525
[Width] => 700
[IsColor] => 1
[ByteOrderMotorola] => 1
)[IFD0] => Array
(
[Orientation] => 1
[Exif_IFD_Pointer] => 38
)[EXIF] => Array
(
[ColorSpace] => 1
[ExifImageWidth] => 700
[ExifImageLength] => 525
))
Any hints would be greatly appreciated.
Thanks,
Del
- The topic ‘Problem extracting exif GPS data from images’ is closed to new replies.