diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-11 10:45:50 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-11 10:45:50 +0200 |
commit | 0e4f5001d5143f55a9d051b501fe32de900917c5 (patch) | |
tree | 85eccd8e46e15bb40234f6f7356da92287bd6be7 | |
parent | 25e8ac1c2f51e7f3f35eaec013aa1b3f8356f17b (diff) | |
download | nextcloud-server-0e4f5001d5143f55a9d051b501fe32de900917c5.tar.gz nextcloud-server-0e4f5001d5143f55a9d051b501fe32de900917c5.zip |
don't crop Y axis
-rwxr-xr-x | lib/preview.php | 3 |
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); |