mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Dont create borders around previews when scaling up is disabled
This commit is contained in:
parent
1a454f61ed
commit
578eb33c20
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue