mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-03 14:47:47 +02:00
correcting jpeg when setting quality
This commit is contained in:
@@ -336,6 +336,7 @@ EOD;
|
|||||||
protected function SetQuality() {
|
protected function SetQuality() {
|
||||||
if(!$this->quality) {
|
if(!$this->quality) {
|
||||||
switch($this->extension) {
|
switch($this->extension) {
|
||||||
|
case 'jpeg':
|
||||||
case 'jpg':
|
case 'jpg':
|
||||||
$this->quality = self::JPEG_QUALITY_DEFAULT;
|
$this->quality = self::JPEG_QUALITY_DEFAULT;
|
||||||
break;
|
break;
|
||||||
|
@@ -91,6 +91,7 @@ v0.4.x (latest)
|
|||||||
* Fixed support for jpeg, not only jpg.
|
* Fixed support for jpeg, not only jpg.
|
||||||
* Fixed crop whole image by setting crop=0,0,0,0
|
* 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.
|
* 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)
|
v0.4 (2013-10-08)
|
||||||
|
Reference in New Issue
Block a user