mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Update Image.php
функция resize(200, 200) растягивала изображение, теперь нет. http://f3.s.qip.ru/2Q3rL699.jpg - сверху до, снизу после
This commit is contained in:
@@ -265,8 +265,8 @@ class Image
|
||||
// Redefine vars
|
||||
$width = (int) $width;
|
||||
$height = (int) $height;
|
||||
$x = (int) $x;
|
||||
$y = (int) $y;
|
||||
$x = (int) $x;
|
||||
$y = (int) $y;
|
||||
|
||||
// Calculate
|
||||
if ($x + $width > $this->width) $width = $this->width - $x;
|
||||
|
Reference in New Issue
Block a user