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
// create Intervention Image
$img = Image::make('public/foo.jpg');
// get Imagick instance
$imagick = $img->getCore();
// apply Imagick function
$imagick->embossImage(0, 1);
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .