1
0
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:
Евгений
2013-11-28 14:00:41 +06:00
parent 950b816ca6
commit b54cac24b1

View File

@@ -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;