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

# Image::orientate

## Adjusts the current image orientation automatically



> public Intervention\Image\Image orientate()

This method reads the EXIF image profile setting 'Orientation' and performs a rotation on the image to display the image correctly. **Image object must be instantiated from file path to read the EXIF data correctly.**

**Note: PHP must be compiled in with `--enable-exif` to use this method. Windows users must also have the `mbstring` extension enabled.**

### Parameters

None

### Return Values
Instance of `Intervention\Image\Image`

### Examples

```php
// instantiate image with auto-orientation
$img = Image::make('foo.jpg')->orientate();
```

### See also

- [exif](https://image.intervention.io/v2/api/exif.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)