diff options
-rw-r--r-- | lib/private/Preview/Generator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index 74fabc55a9a..dcd4ccd130c 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -385,7 +385,7 @@ class Generator { $preview->preciseResize((int)round($scaleW), (int)round($scaleH)); } $cropX = (int)floor(abs($width - $preview->width()) * 0.5); - $cropY = 0; + $cropY = (int)floor(abs($height - $preview->height()) * 0.5); $preview->crop($cropX, $cropY, $width, $height); } else { $preview->resize(max($width, $height)); |