Thumbor\Url\CommandSet::smartCrop PHP Метод

smartCrop() публичный Метод

Specify that smart cropping should be used (overrides halign/valign).
public smartCrop ( boolean $smartCrop )
$smartCrop boolean
    public function smartCrop($smartCrop)
    {
        $this->smartCrop = $smartCrop;
    }

Usage Example

Пример #1
0
 public function testSmartCrop()
 {
     $commandSet = new CommandSet();
     $commandSet->smartCrop(true);
     $this->assertEquals(array('smart'), $commandSet->toArray());
 }