diff --git a/classes/autoptimizeConfig.php b/classes/autoptimizeConfig.php index aab16e15..9a98ae34 100644 --- a/classes/autoptimizeConfig.php +++ b/classes/autoptimizeConfig.php @@ -903,7 +903,7 @@ public static function get_ao_imgopt_default_options() 'autoptimize_imgopt_checkbox_field_1' => '0', // imgopt off. 'autoptimize_imgopt_select_field_2' => '2', // quality glossy. 'autoptimize_imgopt_checkbox_field_3' => '0', // lazy load off. - 'autoptimize_imgopt_checkbox_field_4' => '0', // webp off (might be removed). + 'autoptimize_imgopt_checkbox_field_4' => '0', // avif off (might be removed). 'autoptimize_imgopt_text_field_5' => '', // lazy load exclusions empty. 'autoptimize_imgopt_text_field_6' => '', // optimization exclusions empty. 'autoptimize_imgopt_number_field_7' => '2', // lazy load from nth image (0 = lazyload all). diff --git a/classes/autoptimizeImages.php b/classes/autoptimizeImages.php index 8c20bbe3..e4717d82 100644 --- a/classes/autoptimizeImages.php +++ b/classes/autoptimizeImages.php @@ -1262,6 +1262,7 @@ public function imgopt_options_page() #ao_settings_form {background: white;border: 1px solid #ccc;padding: 1px 15px;margin: 15px 10px 10px 0;} #ao_settings_form .form-table th {font-weight: normal;} #autoptimize_imgopt_descr{font-size: 120%;} + #ao_settings_form td p.condition-warning {color: orange;}
@@ -1300,7 +1301,7 @@ public function imgopt_options_page()
' method='post'>

- + @@ -1328,7 +1329,7 @@ public function imgopt_options_page() echo apply_filters( 'autoptimize_filter_imgopt_settings_status', '

' . esc_html__( 'Shortpixel status: ', 'autoptimize' ) . '' . $_notice['notice'] . '

' ); } else { // translators: link points to shortpixel. - $upsell_msg_1 = '

' . sprintf( esc_html__( 'Get more Google love by speeding up your website. Start serving on-the-fly optimized images (also in the "next-gen" %4$sWebP%5$s and %4$sAVIF%5$s image formats) by %1$sShortPixel%2$s. No additional image optimization plugins are needed: your images are optimized, cached and served from %3$sShortPixel\'s global CDN%2$s.', 'autoptimize' ), '', '', '', '', '' ); + $upsell_msg_1 = '

' . sprintf( esc_html__( 'Get more Google love by speeding up your website. Start serving on-the-fly optimized images (also in the "next-gen" %4$sWebP%5$s image format) by %1$sShortPixel%2$s. No additional image optimization plugins are needed: your images are optimized, cached and served from %3$sShortPixel\'s global CDN%2$s.', 'autoptimize' ), '', '', '', '', '' ); if ( 'launch' === $options['availabilities']['extra_imgopt']['status'] ) { $upsell_msg_2 = sprintf( esc_html__( 'For a limited time only, this service is offered free for all Autoptimize users, %1$sdon\'t miss the chance to test it%2$s and see how much it could improve your site\'s speed.', 'autoptimize' ), '', '' ); } else { @@ -1381,12 +1382,23 @@ public function imgopt_options_page()

should_ngimg() ) { ?> > - +
+ + - +

+ get_img_quality_setting() && $this->should_ngimg() ) { + _e( 'Your Image optimization quality is set to "lossless", but AVIF files can end up being bigger than jpeg or webp for lossless images, so consider choosing a different quality or disable the AVIF option.', 'autoptimize' ); + } + ?> +

+