mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-08 06:06:53 +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
|
// Redefine vars
|
||||||
$width = (int) $width;
|
$width = (int) $width;
|
||||||
$height = (int) $height;
|
$height = (int) $height;
|
||||||
$x = (int) $x;
|
$x = (int) $x;
|
||||||
$y = (int) $y;
|
$y = (int) $y;
|
||||||
|
|
||||||
// Calculate
|
// Calculate
|
||||||
if ($x + $width > $this->width) $width = $this->width - $x;
|
if ($x + $width > $this->width) $width = $this->width - $x;
|
||||||
|
Reference in New Issue
Block a user