don't crop Y axis

This commit is contained in:
Georg Ehrke 2013-06-11 10:45:50 +02:00
parent 25e8ac1c2f
commit 0e4f5001d5
1 changed files with 2 additions and 1 deletions

View File

@ -427,7 +427,8 @@ class Preview {
if($newXsize >= $x && $newYsize >= $y) { if($newXsize >= $x && $newYsize >= $y) {
$cropX = floor(abs($x - $newXsize) * 0.5); $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); $image->crop($cropX, $cropY, $x, $y);