get_usage(); ?>

Total Cache Image Converter is currently is_extension_active( 'imageservice' ) ) { ?> enabled disabled .

array( 'imageservice', 'compression', ), 'label' => esc_html__( 'Compression type:', 'w3-total-cache' ), 'control' => 'radiogroup', 'radiogroup_values' => array( 'lossy' => 'Lossy', 'lossless' => 'Lossless', ), 'description' => esc_html__( 'Image compression type.', 'w3-total-cache' ), 'disabled' => false, ) ); Util_Ui::config_item( array( 'key' => array( 'imageservice', 'auto', ), 'label' => esc_html__( 'Auto-convert:', 'w3-total-cache' ), 'control' => 'radiogroup', 'radiogroup_values' => array( 'enabled' => 'Enabled', 'disabled' => 'Disabled', ), 'description' => esc_html__( 'Auto-convert images on upload.', 'w3-total-cache' ), 'disabled' => false, ) ); Util_Ui::config_item( array( 'key' => array( 'imageservice', 'visibility', ), 'label' => esc_html__( 'Visibility:', 'w3-total-cache' ), 'control' => 'selectbox', 'selectbox_values' => array( 'never' => array( 'label' => __( 'Never', 'w3-total-cache' ) ), 'extension' => array( 'label' => __( 'If extension is active', 'w3-total-cache' ) ), 'always' => array( 'label' => __( 'Always', 'w3-total-cache' ) ), ), 'description' => esc_html__( 'Show converted image attachments in the Media Library.', 'w3-total-cache' ), 'disabled' => false, ) ); $settings = $c->get_array( 'imageservice' ); // Default to true for webp if not set (backward compatibility). $webp_enabled = isset( $settings['webp'] ) ? (bool) $settings['webp'] : true; // Default to true for avif if not set. We need to make sure this is true for the Pro version. $avif_enabled = isset( $settings['avif'] ) ? (bool) $settings['avif'] : true; Util_Ui::config_item( array( 'key' => array( 'imageservice', 'webp', ), 'label' => esc_html__( 'Output formats:', 'w3-total-cache' ), 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'WebP', 'w3-total-cache' ), 'value' => $webp_enabled, 'description' => esc_html__( 'Convert images to WebP format.', 'w3-total-cache' ), 'disabled' => false, ) ); Util_Ui::config_item_pro( array( 'key' => array( 'imageservice', 'avif', ), 'label' => ' ', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'AVIF', 'w3-total-cache' ), 'value' => $avif_enabled, 'disabled' => ! $is_pro, 'excerpt' => esc_html__( 'Convert images to AVIF format for even better compression and performance.', 'w3-total-cache' ), 'description' => array( esc_html__( 'AVIF (AV1 Image File Format) is a modern image format that provides superior compression compared to WebP and traditional formats like JPEG and PNG. With AVIF conversion, you can achieve significantly smaller file sizes while maintaining high image quality, resulting in faster page load times and improved user experience.', 'w3-total-cache' ), ), 'wrap_separate' => true, ) ); ?>
', $usage['limit_hourly_unlicensed'], $usage['limit_monthly_unlicensed'], '

', $usage['limit_hourly_licensed'], '

' ), array( 'p' => array(), 'br' => array(), ) ); Util_Ui::print_score_block( __( 'Potential Google PageSpeed Gain', 'w3-total-cache' ), '+9', __( 'Points', 'w3-total-cache' ), __( 'In one recent test, converting images to modern formats like WebP or AVIF added over 9 points to the Google PageSpeed score!', 'w3-total-cache' ), 'https://www.boldgrid.com/support/w3-total-cache/pagespeed-tests/webp/?utm_source=w3tc&utm_medium=webp&utm_campaign=proof' ); Util_Ui::pro_wrap_maybe_end( 'imageservice_settings', false ); ?>
null, 'label' => esc_html__( 'Convert all images:', 'w3-total-cache' ), 'label_class' => 'w3tc-imageservice-all', 'control' => 'button', 'none_label' => 'Convert All', 'description' => esc_html__( 'Convert all images in the media library.', 'w3-total-cache' ), ) ); Util_Ui::config_item( array( 'key' => null, 'label' => esc_html__( 'Revert all images:', 'w3-total-cache' ), 'label_class' => 'w3tc-imageservice-revertall', 'control' => 'button', 'none_label' => 'Revert All', 'description' => esc_html__( 'Revert all converted images in the media library.', 'w3-total-cache' ), ) ); ?>