0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
shimoda
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Imagick
/
Commands
/
[
Home
]
File: GetSizeCommand.php
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Size; class GetSizeCommand extends \Intervention\Image\Commands\AbstractCommand { /** * Reads size of given image instance in pixels * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { /** @var \Imagick $core */ $core = $image->getCore(); $this->setOutput(new Size( $core->getImageWidth(), $core->getImageHeight() )); return true; } }