diff --git a/code.php b/code.php index 5ef6871..c5b70e3 100755 --- a/code.php +++ b/code.php @@ -276,6 +276,7 @@ function process_output_buffer( $buffer = '' ) { if ( ! function_exists( 'imagewebp' ) ) { die( $file_format . ' is not supported!' ); } + imagepalettetotruecolor( $img ); imagewebp( $img ); break;