src/Image.php
public function resolution($width = null, $height = null)
    {
        return [
            'width' => $width ?: $this->widths[array_rand($this->widths)],
            'height' => $height ?: $this->heights[array_rand($this->heights)]
        ];
    }
public function resolution($width = null, $height = null)
    {
        return [
            'width' => $width ?: $this->widths[array_rand($this->widths)],
            'height' => $height ?: $this->heights[array_rand($this->heights)]
        ];
    }
public function resolution ( $ width = null , $ height = null ) { return [ 'width' => $ width ? : $ this -> widths [ array_rand ( $ this -> widths ) ] , 'height' => $ height ? : $ this -> heights [ array_rand ( $ this -> heights ) ] ] ; }
Resolve resolution.

@param  integer|null $width
@param  integer|null $height
@return array
Resolve resolution .