summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-06-11 10:45:50 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-06-11 10:45:50 +0200
commit0e4f5001d5143f55a9d051b501fe32de900917c5 (patch)
tree85eccd8e46e15bb40234f6f7356da92287bd6be7
parent25e8ac1c2f51e7f3f35eaec013aa1b3f8356f17b (diff)
downloadnextcloud-server-0e4f5001d5143f55a9d051b501fe32de900917c5.tar.gz
nextcloud-server-0e4f5001d5143f55a9d051b501fe32de900917c5.zip
don't crop Y axis
-rwxr-xr-xlib/preview.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/preview.php b/lib/preview.php
index 904689bc4e1..ed33e7b09dc 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -427,7 +427,8 @@ class Preview {
if($newXsize >= $x && $newYsize >= $y) {
$cropX = floor(abs($x - $newXsize) * 0.5);
- $cropY = floor(abs($y - $newYsize) * 0.5);
+ //$cropY = floor(abs($y - $newYsize) * 0.5);
+ $cropY = 0;
$image->crop($cropX, $cropY, $x, $y);