src/Field.php
public function ratio(int $width, int $height, bool $resize = false)
    {
        $this->field['ratio'] = "{$width}:{$height}";

        if ($resize) {
            $this->field['imagesize'] = "{$width},{$height}";
        }

        return $this;
    }
public function ratio(int $width, int $height, bool $resize = false)
    {
        $this->field['ratio'] = "{$width}:{$height}";

        if ($resize) {
            $this->field['imagesize'] = "{$width},{$height}";
        }

        return $this;
    }
public function ratio ( int $ width , int $ height , bool $ resize = false ) { $ this -> field [ 'ratio' ] = "{$width}:{$height}" ; if ( $ resize ) { $ this -> field [ 'imagesize' ] = "{$width},{$height}" ; } return $ this ; }
Set the desired image ratio to be requested from the CMS. The UI will
automatically resize any uploaded image to match this ratio.

@param int $width
@param int $height
@param bool $resize
@return Agencms\Core\Field
Set the desired image ratio to be requested from the CMS . The UI will automatically resize any uploaded image to match this ratio .