<p>You can create a <a href="http://buildwithcraft.com/docs/plugins/introduction" rel="nofollow">plugin</a> that does something like this:</p>

<pre><code>$image = new Image();
$image-&gt;load('/path/to/image.jpg');
$exif = $image-&gt;getExifMetadata();
</code></pre>

<p>See <a href="http://buildwithcraft.com/classreference/etc/io/Image" rel="nofollow">here</a> for other methods on the Image class.</p>

CC BY-SA 3.0
2015-03-06T18:35:05.117Z
Thanks! I'll give this a shot. It's about time I take a stab at a basic plugin.
Dave Joyce
CC BY-SA 3.0
2015-03-05T16:29:32.863Z
2015-03-05T16:29:32.863Z
Brad Bell
<p>You could try out my new <a href="https://github.com/carlcs/craft-assetmetadata" rel="nofollow">"Asset Metadata"</a> plugin. It makes use of the <a href="https://github.com/JamesHeinrich/getID3/" rel="nofollow">getID3</a> PHP library to extract all sort of metadata from your assets.</p>

<p>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. <code>PT1H21M48S</code>), or a photo's exposure time as a ratio.</p>

CC BY-SA 3.0
2015-03-19T19:43:35.827Z
2015-03-19T19:43:35.827Z
carlcs
<p>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? </p>

<assets><image>
Is there a way to read IPTC, EXIF or TIFF Metadata in an Image uploaded to Assets?
# Is there a way to read IPTC, EXIF or TIFF Metadata in an Image uploaded to Assets?

(Asked by: username_0 on 2015-03-05)

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?

**Tags:** assets, image


---

## 2 answers

### Answer by username_1 on 2015-03-05. Score: 2 | Accepted answer

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.

> **Comments:**
> **username_0**: Thanks! I'll give this a shot. It's about time I take a stab at a basic plugin.  

---

### Answer by username_2 on 2015-03-19. Score: 2

You could try out my new ["Asset Metadata"](https://github.com/username_2/craft-assetmetadata) plugin. It makes use of the [getID3](https://github.com/JamesHeinrich/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.


---

