getCore — Read core instance of image

Description

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

  1. // create Intervention Image
  2. $img = Image::make('public/foo.jpg');
  3. // get Imagick instance
  4. $imagick = $img->getCore();
  5. // apply Imagick function
  6. $imagick->embossImage(0, 1);