|
@@ 521-523 (lines=3) @@
|
| 518 |
|
# For "frameless" option: do not present an image bigger than the |
| 519 |
|
# source (for bitmap-style images). This is the same behavior as the |
| 520 |
|
# "thumb" option does it already. |
| 521 |
|
if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
| 522 |
|
$hp['width'] = $srcWidth; |
| 523 |
|
} |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
if ( $file && isset( $hp['width'] ) ) { |
|
@@ 680-682 (lines=3) @@
|
| 677 |
|
# Do not present an image bigger than the source, for bitmap-style images |
| 678 |
|
# This is a hack to maintain compatibility with arbitrary pre-1.10 behavior |
| 679 |
|
$srcWidth = $file->getWidth( $page ); |
| 680 |
|
if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
| 681 |
|
$hp['width'] = $srcWidth; |
| 682 |
|
} |
| 683 |
|
$thumb = $file->transform( $hp ); |
| 684 |
|
} |
| 685 |
|
|