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

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

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

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

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