|
@@ 511-513 (lines=3) @@
|
| 508 |
|
# For "frameless" option: do not present an image bigger than the |
| 509 |
|
# source (for bitmap-style images). This is the same behavior as the |
| 510 |
|
# "thumb" option does it already. |
| 511 |
|
if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
| 512 |
|
$hp['width'] = $srcWidth; |
| 513 |
|
} |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
if ( $file && isset( $hp['width'] ) ) { |
|
@@ 670-672 (lines=3) @@
|
| 667 |
|
# Do not present an image bigger than the source, for bitmap-style images |
| 668 |
|
# This is a hack to maintain compatibility with arbitrary pre-1.10 behavior |
| 669 |
|
$srcWidth = $file->getWidth( $page ); |
| 670 |
|
if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
| 671 |
|
$hp['width'] = $srcWidth; |
| 672 |
|
} |
| 673 |
|
$thumb = $file->transform( $hp ); |
| 674 |
|
} |
| 675 |
|
|