From 72176efe2299921efc5b29e35dd111b2421fd81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B8=CC=86?= Date: Fri, 20 May 2016 16:38:36 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D1=81=D0=B6=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20PNG=20=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Image.php b/src/Image.php index cda1857..e4fe5af 100755 --- a/src/Image.php +++ b/src/Image.php @@ -1057,7 +1057,7 @@ protected static function saveImage( $bitmap, $file, $type, $quality = 0.75 ) case IMAGETYPE_PNG: @imagealphablending( $bitmap, false ); @imagesavealpha( $bitmap, true ); - $result = @imagepng( $bitmap, $file ); + $result = @imagepng( $bitmap, $file, 9 ); @imagealphablending( $bitmap, true ); return $result; @@ -1169,7 +1169,7 @@ protected static function copyBitmap( $bitmap ) $result = @imagecopy( $bitmap2, $bitmap, 0, 0, 0, 0, $width, $height ); if ( !$bitmap2 || !$result ) - throw new \Exception( 'Не удалось скопировать ресурс изображение. Возможно, не хватает оперативной памяти.' ); + throw new \Exception( 'Не удалось скопировать ресурс изображения. Возможно, не хватает оперативной памяти.' ); return $bitmap2; }