Changeset 3294429
- Timestamp:
- 05/15/2025 09:44:31 PM (9 months ago)
- Location:
- ewww-image-optimizer
- Files:
-
- 10 edited
- 1 copied
-
tags/8.1.4 (copied) (copied from ewww-image-optimizer/trunk)
-
tags/8.1.4/.travis.yml (modified) (2 diffs)
-
tags/8.1.4/changelog.txt (modified) (1 diff)
-
tags/8.1.4/common.php (modified) (5 diffs)
-
tags/8.1.4/ewww-image-optimizer.php (modified) (2 diffs)
-
tags/8.1.4/readme.txt (modified) (2 diffs)
-
trunk/.travis.yml (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/common.php (modified) (5 diffs)
-
trunk/ewww-image-optimizer.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ewww-image-optimizer/tags/8.1.4/.travis.yml
r3150992 r3294429 16 16 php: 17 17 - 7.4 18 - 8.019 18 - 8.1 20 19 - 8.2 20 - 8.3 21 21 22 22 services: … … 30 30 - php: 7.4 31 31 env: WP_VERSION=latest WP_MULTISITE=1 WPSNIFF=1 32 - php: 8. 232 - php: 8.3 33 33 env: WP_VERSION=latest WP_MULTISITE=1 WPSNIFF=1 34 - php: 8. 035 env: WP_VERSION=6. 0WP_MULTISITE=034 - php: 8.1 35 env: WP_VERSION=6.5 WP_MULTISITE=0 36 36 37 37 before_script: 38 38 - export PATH="$HOME/.config/composer/vendor/bin:$PATH" 39 39 - phpenv config-rm xdebug.ini 40 - php --info 40 41 - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION 41 42 - composer global require --dev yoast/phpunit-polyfills:"^1.0" -
ewww-image-optimizer/tags/8.1.4/changelog.txt
r3262301 r3294429 1 = 8.1.4 = 2 *Release Date - May 15, 2025* 3 4 * added: customize lossy PDF compression by defining EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI and/or EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY 5 * fixed: WebP thumbnails have incorrect orientation when created from the original unoptimized image 6 1 7 = 8.1.3 = 2 8 *Release Date - March 26, 2025* -
ewww-image-optimizer/tags/8.1.4/common.php
r3262301 r3294429 3154 3154 ewwwio_debug_message( "could not get image editor: $error_message" ); 3155 3155 } else { 3156 $editor->maybe_exif_rotate(); 3156 3157 $resized_image = $editor->resize( $webp_width, $webp_height, $webp_crop ); 3157 3158 if ( is_wp_error( $resized_image ) ) { … … 5656 5657 'backup' => $hash, 5657 5658 'domain' => $domain, 5659 'site_url' => get_home_url(), 5658 5660 // 'force_async' => 1, // for testing out async mode. 5659 5661 ); 5662 5663 if ( 'application/pdf' === $type ) { 5664 if ( defined( 'EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI' ) ) { 5665 $post_fields['image_dpi'] = EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI; 5666 } 5667 if ( defined( 'EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY' ) ) { 5668 $post_fields['quality'] = EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY; 5669 } 5670 } 5660 5671 5661 5672 if ( $webp && $fullsize_image && $webp_width && $webp_height ) { … … 5842 5853 $original_image = ewwwio_get_original_image_path_from_thumb( $file, $attachment_id ); 5843 5854 if ( $original_image && ewwwio_is_file( $original_image ) ) { 5855 ewww_image_optimizer_autorotate( $original_image ); 5856 $orientation = (int) ewww_image_optimizer_get_orientation( $original_image, 'image/jpeg' ); 5857 // If an image (still) has an orientation flag, bail out. 5858 if ( ! empty( $orientation ) && 1 < $orientation ) { 5859 ewwwio_debug_message( "orientation $orientation not allowed" ); 5860 return $params; 5861 } 5862 5844 5863 list( $full_width, $full_height ) = wp_getimagesize( $original_image ); 5845 5864 if ( empty( $full_width ) || empty( $full_height ) ) { … … 5847 5866 return $params; 5848 5867 } 5868 5849 5869 // Then we do a calculation with the dimensions to see if the thumb was cropped. 5850 5870 $thumb_height_calc = $thumb_width / $full_width * $full_height; … … 11811 11831 ewwwio_debug_message( 'svg level: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_svg_level' ) ); 11812 11832 ewwwio_debug_message( 'webp level: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_level' ) ); 11833 ewwwio_debug_message( 'webp mode: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_conversion_method' ) ); 11813 11834 ewwwio_debug_message( 'bulk delay: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_delay' ) ); 11814 11835 ewwwio_debug_message( 'backup mode: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_backup_files' ) ); -
ewww-image-optimizer/tags/8.1.4/ewww-image-optimizer.php
r3262301 r3294429 14 14 Description: Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science. 15 15 Author: Exactly WWW 16 Version: 8.1. 317 Requires at least: 6. 416 Version: 8.1.4 17 Requires at least: 6.5 18 18 Requires PHP: 7.4 19 19 Author URI: https://ewww.io/ … … 35 35 } elseif ( false === strpos( add_query_arg( '', '' ), 'ewwwio_disable=1' ) ) { 36 36 37 define( 'EWWW_IMAGE_OPTIMIZER_VERSION', 81 3);37 define( 'EWWW_IMAGE_OPTIMIZER_VERSION', 814 ); 38 38 39 39 if ( WP_DEBUG && function_exists( 'memory_get_usage' ) ) { -
ewww-image-optimizer/tags/8.1.4/readme.txt
r3262301 r3294429 3 3 Donate link: https://ewww.io/donate/ 4 4 Tags: compress, convert, webp, resize, lazy load 5 Requires at least: 6. 46 Tested up to: 6. 75 Requires at least: 6.5 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 8.1. 38 Stable tag: 8.1.4 9 9 License: GPLv3 10 10 … … 144 144 * Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features) 145 145 * If you would like to help translate this plugin in your language, [join the team](https://translate.wordpress.org/projects/wp-plugins/ewww-image-optimizer/) 146 147 = 8.1.4 = 148 *Release Date - May 15, 2025* 149 150 * added: customize lossy PDF compression by defining EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI and/or EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY 151 * fixed: WebP thumbnails have incorrect orientation when created from the original unoptimized image 146 152 147 153 = 8.1.3 = -
ewww-image-optimizer/trunk/.travis.yml
r3150992 r3294429 16 16 php: 17 17 - 7.4 18 - 8.019 18 - 8.1 20 19 - 8.2 20 - 8.3 21 21 22 22 services: … … 30 30 - php: 7.4 31 31 env: WP_VERSION=latest WP_MULTISITE=1 WPSNIFF=1 32 - php: 8. 232 - php: 8.3 33 33 env: WP_VERSION=latest WP_MULTISITE=1 WPSNIFF=1 34 - php: 8. 035 env: WP_VERSION=6. 0WP_MULTISITE=034 - php: 8.1 35 env: WP_VERSION=6.5 WP_MULTISITE=0 36 36 37 37 before_script: 38 38 - export PATH="$HOME/.config/composer/vendor/bin:$PATH" 39 39 - phpenv config-rm xdebug.ini 40 - php --info 40 41 - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION 41 42 - composer global require --dev yoast/phpunit-polyfills:"^1.0" -
ewww-image-optimizer/trunk/changelog.txt
r3262301 r3294429 1 = 8.1.4 = 2 *Release Date - May 15, 2025* 3 4 * added: customize lossy PDF compression by defining EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI and/or EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY 5 * fixed: WebP thumbnails have incorrect orientation when created from the original unoptimized image 6 1 7 = 8.1.3 = 2 8 *Release Date - March 26, 2025* -
ewww-image-optimizer/trunk/common.php
r3262301 r3294429 3154 3154 ewwwio_debug_message( "could not get image editor: $error_message" ); 3155 3155 } else { 3156 $editor->maybe_exif_rotate(); 3156 3157 $resized_image = $editor->resize( $webp_width, $webp_height, $webp_crop ); 3157 3158 if ( is_wp_error( $resized_image ) ) { … … 5656 5657 'backup' => $hash, 5657 5658 'domain' => $domain, 5659 'site_url' => get_home_url(), 5658 5660 // 'force_async' => 1, // for testing out async mode. 5659 5661 ); 5662 5663 if ( 'application/pdf' === $type ) { 5664 if ( defined( 'EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI' ) ) { 5665 $post_fields['image_dpi'] = EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI; 5666 } 5667 if ( defined( 'EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY' ) ) { 5668 $post_fields['quality'] = EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY; 5669 } 5670 } 5660 5671 5661 5672 if ( $webp && $fullsize_image && $webp_width && $webp_height ) { … … 5842 5853 $original_image = ewwwio_get_original_image_path_from_thumb( $file, $attachment_id ); 5843 5854 if ( $original_image && ewwwio_is_file( $original_image ) ) { 5855 ewww_image_optimizer_autorotate( $original_image ); 5856 $orientation = (int) ewww_image_optimizer_get_orientation( $original_image, 'image/jpeg' ); 5857 // If an image (still) has an orientation flag, bail out. 5858 if ( ! empty( $orientation ) && 1 < $orientation ) { 5859 ewwwio_debug_message( "orientation $orientation not allowed" ); 5860 return $params; 5861 } 5862 5844 5863 list( $full_width, $full_height ) = wp_getimagesize( $original_image ); 5845 5864 if ( empty( $full_width ) || empty( $full_height ) ) { … … 5847 5866 return $params; 5848 5867 } 5868 5849 5869 // Then we do a calculation with the dimensions to see if the thumb was cropped. 5850 5870 $thumb_height_calc = $thumb_width / $full_width * $full_height; … … 11811 11831 ewwwio_debug_message( 'svg level: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_svg_level' ) ); 11812 11832 ewwwio_debug_message( 'webp level: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_level' ) ); 11833 ewwwio_debug_message( 'webp mode: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_conversion_method' ) ); 11813 11834 ewwwio_debug_message( 'bulk delay: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_delay' ) ); 11814 11835 ewwwio_debug_message( 'backup mode: ' . ewww_image_optimizer_get_option( 'ewww_image_optimizer_backup_files' ) ); -
ewww-image-optimizer/trunk/ewww-image-optimizer.php
r3262301 r3294429 14 14 Description: Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science. 15 15 Author: Exactly WWW 16 Version: 8.1. 317 Requires at least: 6. 416 Version: 8.1.4 17 Requires at least: 6.5 18 18 Requires PHP: 7.4 19 19 Author URI: https://ewww.io/ … … 35 35 } elseif ( false === strpos( add_query_arg( '', '' ), 'ewwwio_disable=1' ) ) { 36 36 37 define( 'EWWW_IMAGE_OPTIMIZER_VERSION', 81 3);37 define( 'EWWW_IMAGE_OPTIMIZER_VERSION', 814 ); 38 38 39 39 if ( WP_DEBUG && function_exists( 'memory_get_usage' ) ) { -
ewww-image-optimizer/trunk/readme.txt
r3262301 r3294429 3 3 Donate link: https://ewww.io/donate/ 4 4 Tags: compress, convert, webp, resize, lazy load 5 Requires at least: 6. 46 Tested up to: 6. 75 Requires at least: 6.5 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 8.1. 38 Stable tag: 8.1.4 9 9 License: GPLv3 10 10 … … 144 144 * Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features) 145 145 * If you would like to help translate this plugin in your language, [join the team](https://translate.wordpress.org/projects/wp-plugins/ewww-image-optimizer/) 146 147 = 8.1.4 = 148 *Release Date - May 15, 2025* 149 150 * added: customize lossy PDF compression by defining EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_DPI and/or EWWW_IMAGE_OPTIMIZER_PDF_IMAGE_QUALITY 151 * fixed: WebP thumbnails have incorrect orientation when created from the original unoptimized image 146 152 147 153 = 8.1.3 =
Note: See TracChangeset
for help on using the changeset viewer.