From b54cac24b105597bb51a17029e969619b5749a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= Date: Thu, 28 Nov 2013 14:00:41 +0600 Subject: [PATCH] Update Image.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit функция resize(200, 200) растягивала изображение, теперь нет. http://f3.s.qip.ru/2Q3rL699.jpg - сверху до, снизу после --- libraries/Gelato/Image/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Gelato/Image/Image.php b/libraries/Gelato/Image/Image.php index 235155f..33c36c5 100644 --- a/libraries/Gelato/Image/Image.php +++ b/libraries/Gelato/Image/Image.php @@ -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;