Файл: system/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php
Строк: 30
<?php
namespace InterventionImageImagickCommands;
use InterventionImageCommandsAbstractCommand;
use InterventionImageSize;
class GetSizeCommand extends AbstractCommand
{
/**
* Reads size of given image instance in pixels
*
* @param InterventionImageImage $image
* @return boolean
*/
public function execute($image)
{
/** @var Imagick $core */
$core = $image->getCore();
$this->setOutput(new Size(
$core->getImageWidth(),
$core->getImageHeight()
));
return true;
}
}