4

I'm trying to see if I can get the Date Created on images within an image upload. Not the date the file was created, but the date the picture was taken. If I open an image up in Preview, in the Inspector I can see that the IPTC, EXIF, and TIFF Metadata contains the information I'm looking for. Is that possible?

2 Answers 2

2

You can create a plugin that does something like this:

$image = new Image();
$image->load('/path/to/image.jpg');
$exif = $image->getExifMetadata();

See here for other methods on the Image class.

1
  • Thanks! I'll give this a shot. It's about time I take a stab at a basic plugin.
    – Dave Joyce
    Mar 6, 2015 at 18:35
2

You could try out my new "Asset Metadata" plugin. It makes use of the getID3 PHP library to extract all sort of metadata from your assets.

To make your life a bit easier, I added further beautified metadata properties like a sound file's playtime duration in ISO 8601 date interval format (i.e. PT1H21M48S), or a photo's exposure time as a ratio.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.