PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/optimization/templates/details-view/optimized.php +19 -3 1.2.01.7.7 View file →
@@ -28,9 +28,19 @@
28 28 <?php esc_html_e( 'Image sizes optimized', 'image-optimization' ); ?>:
29 29 </span>
30 30
31 31 <span class="image-optimization-control__property-value">
32 - <?php echo esc_html( $args['sizes_optimized_count'] ); ?>
32 + <?php printf(
33 + '%d/%d',
34 + esc_html( $args['sizes_optimized_count'] ),
35 + esc_html( $args['sizes_total'] )
36 + ); ?>
37 +
38 + <button type="button"
39 + class="image-optimization-control__details-button"
40 + aria-label="<?php esc_html_e( 'Open optimization details', 'image-optimization' ); ?>">
41 + (+)
42 + </button>
33 43 </span>
34 44 </span>
35 45
36 46 <span class="setting image-optimization-setting">
@@ -36,10 +46,16 @@
36 46 <span class="setting image-optimization-setting">
37 47 <?php if ( 0 === $args['saved']['absolute'] ) { ?>
38 48 <span class="name image-optimization-control__property"></span>
39 49
40 - <span class="name image-optimization-control__property-value">
41 - <?php esc_html_e( 'Image is fully optimized', 'image-optimization' ); ?>
50 + <span class="name image-optimization-control__property-value" style="max-width: 50%;">
51 + <?php
52 + if ( $args['is_losseless_and_webp'] ) {
53 + esc_html_e( 'Requested WebP format is larger than the original file. Switch to Lossy in settings to convert this image in an optimized manner.', 'image-optimization' );
54 + } else {
55 + esc_html_e( 'Image is fully optimized', 'image-optimization' );
56 + }
57 + ?>
42 58 </span>
43 59 <?php } else { ?>
44 60 <span class="name image-optimization-control__property">
45 61 <?php esc_html_e( 'Overall saving', 'image-optimization' ); ?>: