Retrieve all EXIF data from image

Hello, I have images received from client that has “keyword” meta data stored in it. I’m trying to use Kirby’s $img->exif()->data() to retrieve this data. While I’m seeing almost all of the data that I can see using Photoshop’s File Info panel, like “ImageDescription”, “Document Title”, “Copyright” etc, I’m unable to see the piece of data that I’m after… the keyword data. As is shown in the photoshop panel the data exists.

So I’m wondering if there’s another property of the image I need to be looking at besides exif?

Thank you

$img->exif()->data()

should give you more information.

Thanks for the response. Here’s what is outputted when I run the following command. Lots of info is there. But no ‘keyword’ info is there.

$exif = $img->exif()->data(); print_r($exif);

Array ( [FileName] => hpl_pc_s15_01r_32022191134093.jpg [FileDateTime] => 1524760850 [FileSize] => 1899869 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF [COMPUTED] => Array ( [html] => width="6558" height="4179" [Height] => 4179 [Width] => 6558 [IsColor] => 1 [ByteOrderMotorola] => 0 [Copyright] => Cite Hamilton Public Library, Local History & Archives [Thumbnail.FileType] => 2 [Thumbnail.MimeType] => image/jpeg ) [ImageDescription] => Postcard is a group photo of soldiers that include old originals and returned N.C.O's instructing at the 2nd C.O.R. in Hamilton, Ontario. Postcard Collection HPL_PC_s15_01r_32022191134093 [Make] => Adobe Systems Inc. [Model] => Tiff File [Orientation] => 1 [XResolution] => 3000000/10000 [YResolution] => 3000000/10000 [ResolutionUnit] => 2 [Software] => Adobe Photoshop CC 2015 (Windows) [DateTime] => -- [Artist] => A.H. Hardwick [Copyright] => Cite Hamilton Public Library, Local History & Archives [Exif_IFD_Pointer] => 516 [THUMBNAIL] => Array ( [Compression] => 6 [XResolution] => 72/1 [YResolution] => 72/1 [ResolutionUnit] => 2 [JPEGInterchangeFormat] => 726 [JPEGInterchangeFormatLength] => 6788 ) [ExifVersion] => 0220 [DateTimeOriginal] => -- [DateTimeDigitized] => -- [ColorSpace] => 1 [ExifImageWidth] => 6558 [ExifImageLength] => 4179 [FileSource] => [SceneType] => )

From googling around, It looks like the Keywords are part of something driven by Adobe to extend the base set of Exif data properties. Since its probably not part of the standard spec, and potentially something copywrited by Adobe, I think your probably out of luck.

The last comment here sort of seems to work: https://stackoverflow.com/questions/1578169/how-can-i-read-xmp-data-from-a-jpg-with-php

Or https://github.com/cobraz/xmp