%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/vendor/intervention/image/src/Intervention/Image/Gd/Commands/
Upload File :
Create Path :
Current File : //var/www/html/news/vendor/intervention/image/src/Intervention/Image/Gd/Commands/GetSizeCommand.php

<?php

namespace Intervention\Image\Gd\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)
    {
        $this->setOutput(new Size(
            imagesx($image->getCore()),
            imagesy($image->getCore())
        ));

        return true;
    }
}

Zerion Mini Shell 1.0