src/Manipulators/Helpers/Dimension.php
public function get($value)
    {
        if (is_numeric($value) and $value > 0) {
            return (double) $value * $this->dpr;
        }

        if (preg_match('/^(\d{1,2}(?!\d)|100)(w|h)$/', $value, $matches)) {
            if ($matches[2] === 'h') {
                return (double) $this->image->height() * ($matches[1] / 100);
            }

            return (double) $this->image->width() * ($matches[1] / 100);
        }
    }
public function get($value)
    {
        if (is_numeric($value) and $value > 0) {
            return (double) $value * $this->dpr;
        }

        if (preg_match('/^(\d{1,2}(?!\d)|100)(w|h)$/', $value, $matches)) {
            if ($matches[2] === 'h') {
                return (double) $this->image->height() * ($matches[1] / 100);
            }

            return (double) $this->image->width() * ($matches[1] / 100);
        }
    }
public function get ( $ value ) { if ( is_numeric ( $ value ) and $ value > 0 ) { return ( double ) $ value * $ this -> dpr ; } if ( preg_match ( '/^(\d{1,2}(?!\d)|100)(w|h)$/' , $ value , $ matches ) ) { if ( $ matches [ 2 ] === 'h' ) { return ( double ) $ this -> image -> height ( ) * ( $ matches [ 1 ] / 100 ) ; } return ( double ) $ this -> image -> width ( ) * ( $ matches [ 1 ] / 100 ) ; } }
Resolve the dimension.
@param  string $value The dimension value.
@return double The resolved dimension.
Resolve the dimension .