Version Description
- Correct filesize metadata retrieval for compressed images in WordPress 6.
- Updated WordPress compatibility.
Download this release
Release Info
Developer | TinyPNG |
Plugin | Compress JPEG & PNG images |
Version | 3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3 to 3.4
- readme.txt +6 -2
- src/class-tiny-image.php +1 -0
- src/class-tiny-plugin.php +1 -1
- tiny-compress-images.php +1 -1
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: TinyPNG
|
|
3 |
Donate link: https://tinypng.com/
|
4 |
Tags: compress images, compression, image size, page speed, performance
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,10 @@ A: Yes! After installing the plugin, go to *Media > Bulk Optimization*, and clic
|
|
131 |
A: You can upgrade to a paid account by adding your *Payment details* on your [account dashboard](https://tinypng.com/dashboard/api). Additional compressions above 500 will then be charged at the end of each month as a one-time fee.
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
|
|
134 |
= 3.3 =
|
135 |
* You can now optimise WebP images, in addition to JPEG and PNG.
|
136 |
|
3 |
Donate link: https://tinypng.com/
|
4 |
Tags: compress images, compression, image size, page speed, performance
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 6.0.1
|
7 |
+
Stable tag: 3.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
A: You can upgrade to a paid account by adding your *Payment details* on your [account dashboard](https://tinypng.com/dashboard/api). Additional compressions above 500 will then be charged at the end of each month as a one-time fee.
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= 3.4 =
|
135 |
+
* Correct filesize metadata retrieval for compressed images in WordPress 6.
|
136 |
+
* Updated WordPress compatibility.
|
137 |
+
|
138 |
= 3.3 =
|
139 |
* You can now optimise WebP images, in addition to JPEG and PNG.
|
140 |
|
src/class-tiny-image.php
CHANGED
@@ -286,6 +286,7 @@ class Tiny_Image {
|
|
286 |
if ( isset( $output['width'] ) && isset( $output['height'] ) ) {
|
287 |
$this->wp_metadata['width'] = $output['width'];
|
288 |
$this->wp_metadata['height'] = $output['height'];
|
|
|
289 |
}
|
290 |
}
|
291 |
}
|
286 |
if ( isset( $output['width'] ) && isset( $output['height'] ) ) {
|
287 |
$this->wp_metadata['width'] = $output['width'];
|
288 |
$this->wp_metadata['height'] = $output['height'];
|
289 |
+
$this->wp_metadata['filesize'] = $output['size'];
|
290 |
}
|
291 |
}
|
292 |
}
|
src/class-tiny-plugin.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
19 |
*/
|
20 |
class Tiny_Plugin extends Tiny_WP_Base {
|
21 |
-
const VERSION = '3.
|
22 |
const MEDIA_COLUMN = self::NAME;
|
23 |
const DATETIME_FORMAT = 'Y-m-d G:i:s';
|
24 |
|
18 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
19 |
*/
|
20 |
class Tiny_Plugin extends Tiny_WP_Base {
|
21 |
+
const VERSION = '3.4';
|
22 |
const MEDIA_COLUMN = self::NAME;
|
23 |
const DATETIME_FORMAT = 'Y-m-d G:i:s';
|
24 |
|
tiny-compress-images.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: TinyPNG - JPEG, PNG & WebP image compression
|
4 |
* Description: Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.
|
5 |
-
* Version: 3.
|
6 |
* Author: TinyPNG
|
7 |
* Author URI: https://tinypng.com
|
8 |
* Text Domain: tiny-compress-images
|
2 |
/**
|
3 |
* Plugin Name: TinyPNG - JPEG, PNG & WebP image compression
|
4 |
* Description: Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.
|
5 |
+
* Version: 3.4
|
6 |
* Author: TinyPNG
|
7 |
* Author URI: https://tinypng.com
|
8 |
* Text Domain: tiny-compress-images
|