Skip to content

Commit a5ec9f4

Browse files
authored
Fixed truecolor issue resulting in big file sizes (#167)
1 parent 72be1e2 commit a5ec9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ImageResize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function save($filename, $image_type = null, $quality = null, $permission
274274
break;
275275

276276
case IMAGETYPE_PNG:
277-
if (!$this->quality_truecolor && !imageistruecolor($this->source_image)) {
277+
if (!$this->quality_truecolor || !imageistruecolor($this->source_image)) {
278278
if( !empty($exact_size) && is_array($exact_size) ){
279279
$dest_image = imagecreate($exact_size[0], $exact_size[1]);
280280
} else{

0 commit comments

Comments
 (0)