Skip to content

Commit

Permalink
Merge pull request #2865 from marleylinku/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Jan 29, 2024
2 parents 8172bc2 + 34377bd commit f7c94c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Image/Operation/ToWebp.php
Expand Up @@ -65,6 +65,10 @@ public function run( $load_filename, $save_filename ) {

$input = $imagecreate_function($load_filename);

if(!$input) {
return false;
}

if ( !imageistruecolor($input) ) {
imagepalettetotruecolor($input);
}
Expand Down

0 comments on commit f7c94c6

Please sign in to comment.