From 230e9189a307be70b55cbea56b37ec5e452f09b9 Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Tue, 15 Oct 2013 01:25:29 +0200 Subject: [PATCH] correcting jpeg when setting quality --- CImage.php | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CImage.php b/CImage.php index fc5c8ee..0cf4372 100644 --- a/CImage.php +++ b/CImage.php @@ -336,6 +336,7 @@ EOD; protected function SetQuality() { if(!$this->quality) { switch($this->extension) { + case 'jpeg': case 'jpg': $this->quality = self::JPEG_QUALITY_DEFAULT; break; diff --git a/README.md b/README.md index a402d74..2006a69 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ v0.4.x (latest) * Fixed support for jpeg, not only jpg. * Fixed crop whole image by setting crop=0,0,0,0 * Use negative values for crop width & height to base calulation on original width/height and withdraw selected amount. +* Correcting jpeg when setting quality. v0.4 (2013-10-08)