don't crop Y axis
This commit is contained in:
parent
25e8ac1c2f
commit
0e4f5001d5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue