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

# Image::getCore

## Read core instance of the current image



> public Intervention\Image\Image getCore()

Returns the current image in core format of the particular driver. If you're using GD, you will get the the current **GD resource** as return value. If you have setup the Imagick driver, the method will return the current image information as an **Imagick object**.

### Parameters

none

### Return Values

mixed - depends on configured driver

### Examples

```php
// create Intervention Image
$img = Image::make('public/foo.jpg');

// get Imagick instance
$imagick = $img->getCore();

// apply Imagick function
$imagick->embossImage(0, 1);
```

---

## 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)