1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-25 02:31:20 +02:00

correcting jpeg when setting quality

This commit is contained in:
Mikael Roos
2013-10-15 01:25:29 +02:00
parent e886c86f72
commit 230e9189a3
2 changed files with 2 additions and 0 deletions

View File

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

View File

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