---
application: "Intervention Image"
version: "Version 2"
status: "eol"
---

# Image::exif

## Read Exif meta data from the current image



> public Intervention\Image\Image exif([string $key])

Read Exif meta data from current image. **Image object must be instantiated from file path to read the EXIF data correctly.**

The Imagick driver comes with built-in exif support since version 2.3.9 of this library. Otherwise PHP must be compiled in with ```--enable-exif``` to use this method. Windows users must also have the ```mbstring``` extension enabled. When both the Imagick driver and the extension are available, the extension will be used.

### Parameters

#### key (optional)
Optionally index key to retrieve only particular data. By default all data available will be loaded.

### Return Values
Associative array of all Exif data available or mixed data for particular value. If no meta data can be found, method will return `null`.

### Examples

```php
// read all existing data into an array
$data = Image::make('public/foo.jpg')->exif();

// read model of the camera
$name = Image::make('public/foo.jpg')->exif('Model');
```

### See also

- [iptc](https://image.intervention.io/v2/api/iptc.md)
- [orientate](https://image.intervention.io/v2/api/orientate.md)

---

## Become a Sponsor

### Intervention Image needs your help to keep the project going

Intervention Image is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)