鏡像自
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:
父節點
1a454f61ed
當前提交
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);
|
||||
|
載入中…
新增問題並參考
Block a user