|
@@ 286-289 (lines=4) @@
|
| 283 |
|
$this->targetHeight = $height; |
| 284 |
|
|
| 285 |
|
// Width specified as % |
| 286 |
|
if ($this->targetWidth[strlen($this->targetWidth)-1] == '%') { |
| 287 |
|
$this->targetWidth = $this->srcWidth * substr($this->targetWidth, 0, -1) / 100; |
| 288 |
|
$this->log(" Setting new width based on $width to {$this->targetWidth}."); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
// Height specified as % |
| 292 |
|
if ($this->targetHeight[strlen($this->targetHeight)-1] == '%') { |
|
@@ 292-295 (lines=4) @@
|
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
// Height specified as % |
| 292 |
|
if ($this->targetHeight[strlen($this->targetHeight)-1] == '%') { |
| 293 |
|
$this->targetHeight = $this->srcHeight * substr($this->targetHeight, 0, -1) / 100; |
| 294 |
|
$this->log(" Setting new height based on $height to {$this->targetHeight}."); |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
if (!(is_null($this->targetWidth) || is_numeric($this->targetWidth))) { |
| 298 |
|
throw new Exception('Width not numeric'); |