public function fitWidth(&$source, $target, array $action)
    {
        $width = reset($action['value']);

        if ($this->image->set($source)->fitToWidth($width)->save($target)) {
            $source = $target;
            return true;
        }

        return false;
    }
public function fitWidth(&$source, $target, array $action)
    {
        $width = reset($action['value']);

        if ($this->image->set($source)->fitToWidth($width)->save($target)) {
            $source = $target;
            return true;
        }

        return false;
    }
public function fitWidth ( & $ source , $ target , array $ action ) { $ width = reset ( $ action [ 'value' ] ) ; if ( $ this -> image -> set ( $ source ) -> fitToWidth ( $ width ) -> save ( $ target ) ) { $ source = $ target ; return true ; } return false ; }
Fit to width
@param string $source
@param string $target
@param array $action
@return bool
Fit to width