mirror da
https://github.com/nextcloud/server.git
synced 2024-07-25 05:44:55 +02:00
Dont create borders around previews when scaling up is disabled
This commit is contained in:
parent
1a454f61ed
commit
578eb33c20
@ -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);
|
||||
|
Caricamento…
Fai riferimento in un nuovo problema
Block a user