Skip to content
Snippets Groups Projects
Commit 578eb33c authored by Robin Appelman's avatar Robin Appelman
Browse files

Dont create borders around previews when scaling up is disabled

parent 1a454f61
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment