|
@@ 178-187 (lines=10) @@
|
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
// make sure we're not exceeding our image size if we're not supposed to |
| 178 |
|
if ($this->options['resizeUp'] === false) |
| 179 |
|
{ |
| 180 |
|
$this->maxHeight = (intval($maxHeight) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $maxHeight; |
| 181 |
|
$this->maxWidth = (intval($maxWidth) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $maxWidth; |
| 182 |
|
} |
| 183 |
|
else |
| 184 |
|
{ |
| 185 |
|
$this->maxHeight = intval($maxHeight); |
| 186 |
|
$this->maxWidth = intval($maxWidth); |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
// get the new dimensions... |
| 190 |
|
$this->calcImageSize($this->currentDimensions['width'], $this->currentDimensions['height']); |
|
@@ 256-265 (lines=10) @@
|
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
// make sure we're not exceeding our image size if we're not supposed to |
| 256 |
|
if ($this->options['resizeUp'] === false) |
| 257 |
|
{ |
| 258 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 259 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 260 |
|
} |
| 261 |
|
else |
| 262 |
|
{ |
| 263 |
|
$this->maxHeight = intval($height); |
| 264 |
|
$this->maxWidth = intval($width); |
| 265 |
|
} |
| 266 |
|
|
| 267 |
|
$this->calcImageSizeStrict($this->currentDimensions['width'], $this->currentDimensions['height']); |
| 268 |
|
|
|
@@ 273-282 (lines=10) @@
|
| 270 |
|
$this->resize($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
| 271 |
|
|
| 272 |
|
// reset the max dimensions... |
| 273 |
|
if ($this->options['resizeUp'] === false) |
| 274 |
|
{ |
| 275 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 276 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 277 |
|
} |
| 278 |
|
else |
| 279 |
|
{ |
| 280 |
|
$this->maxHeight = intval($height); |
| 281 |
|
$this->maxWidth = intval($width); |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
// create the working image |
| 285 |
|
if (function_exists('imagecreatetruecolor')) |
|
@@ 378-387 (lines=10) @@
|
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
// make sure we're not exceeding our image size if we're not supposed to |
| 378 |
|
if ($this->options['resizeUp'] === false) |
| 379 |
|
{ |
| 380 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 381 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 382 |
|
} |
| 383 |
|
else |
| 384 |
|
{ |
| 385 |
|
$this->maxHeight = intval($height); |
| 386 |
|
$this->maxWidth = intval($width); |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
$this->calcImageSizeStrict($this->currentDimensions['width'], $this->currentDimensions['height']); |
| 390 |
|
|
|
@@ 395-404 (lines=10) @@
|
| 392 |
|
$this->resize($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
| 393 |
|
|
| 394 |
|
// reset the max dimensions... |
| 395 |
|
if ($this->options['resizeUp'] === false) |
| 396 |
|
{ |
| 397 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 398 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 399 |
|
} |
| 400 |
|
else |
| 401 |
|
{ |
| 402 |
|
$this->maxHeight = intval($height); |
| 403 |
|
$this->maxWidth = intval($width); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
// create the working image |
| 407 |
|
if (function_exists('imagecreatetruecolor')) |
|
@@ 507-516 (lines=10) @@
|
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
// make sure we're not exceeding our image size if we're not supposed to |
| 507 |
|
if ($this->options['resizeUp'] === false) |
| 508 |
|
{ |
| 509 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 510 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 511 |
|
} |
| 512 |
|
else |
| 513 |
|
{ |
| 514 |
|
$this->maxHeight = intval($height); |
| 515 |
|
$this->maxWidth = intval($width); |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
$this->calcImageSizeStrict($this->currentDimensions['width'], $this->currentDimensions['height']); |
| 519 |
|
|
|
@@ 524-533 (lines=10) @@
|
| 521 |
|
$this->resize($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
| 522 |
|
|
| 523 |
|
// reset the max dimensions... |
| 524 |
|
if ($this->options['resizeUp'] === false) |
| 525 |
|
{ |
| 526 |
|
$this->maxHeight = (intval($height) > $this->currentDimensions['height']) ? $this->currentDimensions['height'] : $height; |
| 527 |
|
$this->maxWidth = (intval($width) > $this->currentDimensions['width']) ? $this->currentDimensions['width'] : $width; |
| 528 |
|
} |
| 529 |
|
else |
| 530 |
|
{ |
| 531 |
|
$this->maxHeight = intval($height); |
| 532 |
|
$this->maxWidth = intval($width); |
| 533 |
|
} |
| 534 |
|
|
| 535 |
|
// create the working image |
| 536 |
|
if (function_exists('imagecreatetruecolor')) |