Read Exif data


(Tom Chadwin) #1

Is there any way to get at Exif data in images? I've been asked to display the location of geotagged pics.


(Aleks Bochniak) #2

PHP JPEG Metadata Toolkit should work for this.


(Tom Chadwin) #3

Can I call an external PHP library from Matrix?


(Anthony) #4

I havent tried it, but see the manual page here... seems like that toolkit can be specifically configured in Squiz:

http://manuals.matrix.squizsuite.net/core-assets/chapters/image#Extracting-Metadata-from-a-JPEG-File

 

Shame it only finds some of the basic dc core metadata. I think I'm right in saying that EXIF is nothing more complex than a specific XMP namespace, so in theory it shouldnt be hard to extend the Squiz extraction to pick up those things. Might be worth submitting an idea on the roadmap because the sort of mapping you are suggesting is becoming very common these days with more an more cameras having inbuilt GPS?


(Tom Chadwin) #5

Ah, got it. Thanks for pointing me towards that - I missed it before (as I only searched for "exif"). I've raised a support ticket to get it installed and configured.

 

Thanks again, both.