• File: InterlaceCommand.php
  • Full Path: /home/masbinta/public_html/core/vendor/intervention/image/src/Intervention/Image/Gd/Commands/InterlaceCommand.php
  • File size: 469 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Intervention\Image\Gd\Commands;

use Intervention\Image\Commands\AbstractCommand;

class InterlaceCommand extends AbstractCommand
{
    /**
     * Toggles interlaced encoding mode
     *
     * @param  \Intervention\Image\Image $image
     * @return boolean
     */
    public function execute($image)
    {
        $mode = $this->argument(0)->type('bool')->value(true);

        imageinterlace($image->getCore(), $mode);

        return true;
    }
}