@@ 497-502 (lines=6) @@ | ||
494 | }elseif($thumbnailHeight < 1) |
|
495 | { |
|
496 | $thumbnailHeight = floor($thumbnailWidth / $originaleImageWidth * $originalImageHeight); |
|
497 | }else |
|
498 | { |
|
499 | $scale = min($thumbnailWidth/$originaleImageWidth, $thumbnailHeight/$originalImageHeight); |
|
500 | $thumbnailWidth = floor($scale*$originaleImageWidth); |
|
501 | $thumbnailHeight = floor($scale*$originalImageHeight); |
|
502 | } |
|
503 | $outputs['width'] = $thumbnailWidth; |
|
504 | $outputs['height'] = $thumbnailHeight; |
|
505 | } |
@@ 379-384 (lines=6) @@ | ||
376 | }elseif($thumbnailHeight < 1) |
|
377 | { |
|
378 | $thumbnailHeight = floor($thumbnailWidth / $originaleImageWidth * $originalImageHeight); |
|
379 | }else |
|
380 | { |
|
381 | $scale = min($thumbnailWidth/$originaleImageWidth, $thumbnailHeight/$originalImageHeight); |
|
382 | $thumbnailWidth = floor($scale*$originaleImageWidth); |
|
383 | $thumbnailHeight = floor($scale*$originalImageHeight); |
|
384 | } |
|
385 | $outputs['width'] = $thumbnailWidth; |
|
386 | $outputs['height'] = $thumbnailHeight; |
|
387 | } |