Browse Source

Dont create borders around previews when scaling up is disabled

tags/v7.0.0alpha2
Robin Appelman 10 years ago
parent
commit
578eb33c20
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/preview.php

+ 1
- 1
lib/private/preview.php View File

@@ -615,7 +615,7 @@ class Preview {
return;
}

if ($newXSize < $x || $newYSize < $y) {
if (($newXSize < $x || $newYSize < $y) && $scalingUp) {
if ($newXSize > $x) {
$cropX = floor(($newXSize - $x) * 0.5);
$image->crop($cropX, 0, $x, $newYSize);

Loading…
Cancel
Save