|
@@ 245-248 (lines=4) @@
|
| 242 |
|
throw new InvalidArgumentException('$width and $height must be numeric and greater than zero'); |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
if (!is_numeric($width) || $width == 0) |
| 246 |
|
{ |
| 247 |
|
$width = ( $height * $this->currentDimensions['width'] ) / $this->currentDimensions['height']; |
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
if (!is_numeric($height) || $height == 0) |
| 251 |
|
{ |
|
@@ 250-253 (lines=4) @@
|
| 247 |
|
$width = ( $height * $this->currentDimensions['width'] ) / $this->currentDimensions['height']; |
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
if (!is_numeric($height) || $height == 0) |
| 251 |
|
{ |
| 252 |
|
$height = ( $width * $this->currentDimensions['height'] ) / $this->currentDimensions['width']; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
// make sure we're not exceeding our image size if we're not supposed to |
| 256 |
|
if ($this->options['resizeUp'] === false) |