Version Description
- Increased timeout value to 180 seconds
Download this release
Release Info
Developer | keycdn |
Plugin | Optimus – WordPress Image Optimizer |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- inc/optimus_request.class.php +15 -5
- optimus.php +1 -1
- readme.txt +11 -11
inc/optimus_request.class.php
CHANGED
@@ -267,9 +267,19 @@ class Optimus_Request
|
|
267 |
|
268 |
/* Average values */
|
269 |
if ( $received ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
$upload_data['optimus'] = array(
|
271 |
-
'profit' =>
|
272 |
-
'quantity' =>
|
273 |
'webp' => $options['webp_convert']
|
274 |
);
|
275 |
}
|
@@ -300,7 +310,7 @@ class Optimus_Request
|
|
300 |
/* Response status code */
|
301 |
$response_code = (int)wp_remote_retrieve_response_code($response);
|
302 |
|
303 |
-
/* Not success status code? */
|
304 |
if ( $response_code !== 200 ) {
|
305 |
return 'code '.$response_code;
|
306 |
}
|
@@ -346,7 +356,7 @@ class Optimus_Request
|
|
346 |
* Optimus API request
|
347 |
*
|
348 |
* @since 1.1.4
|
349 |
-
* @change 1.3
|
350 |
*
|
351 |
* @param string $file Image file
|
352 |
* @param array $args Request arguments
|
@@ -366,7 +376,7 @@ class Optimus_Request
|
|
366 |
),
|
367 |
array(
|
368 |
'body' => file_get_contents($file),
|
369 |
-
'timeout' =>
|
370 |
)
|
371 |
);
|
372 |
}
|
267 |
|
268 |
/* Average values */
|
269 |
if ( $received ) {
|
270 |
+
|
271 |
+
/* Reallocate optimization results */
|
272 |
+
if ( !empty($upload_data['optimus']['profit']) and ( $upload_data['optimus']['profit'] > max($diff_filesizes) ) ) {
|
273 |
+
$profit = $upload_data['optimus']['profit'];
|
274 |
+
$quantity = $upload_data['optimus']['quantity'];
|
275 |
+
} else {
|
276 |
+
$profit = max($diff_filesizes);
|
277 |
+
$quantity = round( $received * 100 / $ordered );
|
278 |
+
}
|
279 |
+
|
280 |
$upload_data['optimus'] = array(
|
281 |
+
'profit' => $profit,
|
282 |
+
'quantity' => $quantity,
|
283 |
'webp' => $options['webp_convert']
|
284 |
);
|
285 |
}
|
310 |
/* Response status code */
|
311 |
$response_code = (int)wp_remote_retrieve_response_code($response);
|
312 |
|
313 |
+
/* Not success status code? $response->get_error_message() */
|
314 |
if ( $response_code !== 200 ) {
|
315 |
return 'code '.$response_code;
|
316 |
}
|
356 |
* Optimus API request
|
357 |
*
|
358 |
* @since 1.1.4
|
359 |
+
* @change 1.4.3
|
360 |
*
|
361 |
* @param string $file Image file
|
362 |
* @param array $args Request arguments
|
376 |
),
|
377 |
array(
|
378 |
'body' => file_get_contents($file),
|
379 |
+
'timeout' => 180
|
380 |
)
|
381 |
);
|
382 |
}
|
optimus.php
CHANGED
@@ -7,7 +7,7 @@ Author: KeyCDN
|
|
7 |
Author URI: https://www.keycdn.com
|
8 |
Plugin URI: https://optimus.io
|
9 |
License: GPLv2 or later
|
10 |
-
Version: 1.4.
|
11 |
*/
|
12 |
|
13 |
/*
|
7 |
Author URI: https://www.keycdn.com
|
8 |
Plugin URI: https://optimus.io
|
9 |
License: GPLv2 or later
|
10 |
+
Version: 1.4.3
|
11 |
*/
|
12 |
|
13 |
/*
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
=== Optimus Image Optimizer ===
|
2 |
Contributors: keycdn
|
3 |
-
Tags: images, optimize, compress, progressive, performance, png, jpeg, webp
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.3
|
6 |
Stable tag: trunk
|
@@ -15,11 +15,7 @@ Effective image compression and optimization during the upload process. Automati
|
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
-
=
|
19 |
-
*Optimus* verkleinert die Dateigröße hochgeladener Medien. Abhängig vom Bild und Format ist eine Reduzierung der Größe um bis zu 70 Prozent möglich. Pro Bild lassen sich mehrere Kilobytes einsparen – diese Sparmaßnahme trägt der Blogseiten-Performance positiv bei. Das Beeindruckende an der Kompressionstechnologie: Die Qualität der Bilder bleibt garantiert erhalten. Alle Details zum Funktionsumfang und den einzelnen Preismodellen auf [optimus.io](https://optimus.io)
|
20 |
-
|
21 |
-
|
22 |
-
= (Almost) Magic =
|
23 |
Optimus reduces the file size of uploaded media files. Depending on the image and format, reductions in size of up to 70% are possible. Several kilobytes can be saved per image—these savings contribute positively to the performance of the blog website. What’s most impressive about the compression technology: the quality of the images is maintained—guaranteed.
|
24 |
|
25 |
|
@@ -34,12 +30,13 @@ Optimus reduces the file size of uploaded media files. Depending on the image an
|
|
34 |
= How does it work? =
|
35 |
During the uploading process of images to the media library, the *Optimus* plugin simultaneously sends the images to the *Optimus* server, where the incoming material is processed and sent back in optimized form. Afterwards, the *Optimus* plugin saves the image version with a reduced file size in the media library.
|
36 |
|
37 |
-
The optimization of images - *including thumbnails* - is conducted in the background and outside of the view of the user. The compression gains per file are displayed by Optimus within the media library in form of a percentage value, see [screenshot](https://wordpress.org/plugins/optimus/screenshots/).
|
38 |
|
39 |
-
Differently from common optimization tools,
|
40 |
|
41 |
-
Optimus
|
42 |
|
|
|
43 |
|
44 |
= Features =
|
45 |
* [Progressive JPEGs](https://optimus.io/support/progressive-jpegs/)
|
@@ -59,7 +56,7 @@ Optimus optional support the conversion of images to the thrifty [*WebP* image f
|
|
59 |
|
60 |
|
61 |
= Privacy =
|
62 |
-
* After the optimization and transfer process, the *Optimus* server immediately deletes all the temporarily stored files. No files are stored!
|
63 |
* The Optimus servers are located in Germany.
|
64 |
|
65 |
|
@@ -99,6 +96,9 @@ Optimus optional support the conversion of images to the thrifty [*WebP* image f
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
102 |
= 1.4.2 =
|
103 |
* Allow to generate WebP images on already optimzed images (bulk optimizer)
|
104 |
|
1 |
+
=== Optimus - WordPress Image Optimizer ===
|
2 |
Contributors: keycdn
|
3 |
+
Tags: images, optimize, compress, progressive, performance, png, jpeg, webp, image optimizer, wordpress image optimizer, optimize image, optimize jpg, optimize jpeg, optimize png, compress image, progressive jpeg, progressive jpg
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.3
|
6 |
Stable tag: trunk
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
= WordPress Image Optimizer =
|
|
|
|
|
|
|
|
|
19 |
Optimus reduces the file size of uploaded media files. Depending on the image and format, reductions in size of up to 70% are possible. Several kilobytes can be saved per image—these savings contribute positively to the performance of the blog website. What’s most impressive about the compression technology: the quality of the images is maintained—guaranteed.
|
20 |
|
21 |
|
30 |
= How does it work? =
|
31 |
During the uploading process of images to the media library, the *Optimus* plugin simultaneously sends the images to the *Optimus* server, where the incoming material is processed and sent back in optimized form. Afterwards, the *Optimus* plugin saves the image version with a reduced file size in the media library.
|
32 |
|
33 |
+
The optimization of images - *including thumbnails* - is conducted in the background and outside of the view of the user. The image compression gains per file are displayed by Optimus within the media library in form of a percentage value, see [screenshot](https://wordpress.org/plugins/optimus/screenshots/).
|
34 |
|
35 |
+
Differently from common optimization tools, this WordPress image optimization pluign never alters the quality of images. Instead, superfluous information that is saved by image processing programs and is not even necessary for displaying the image is extracted from image files. This way, the quality of the graphics remains intact while the image size can be reduced significantly. If you wish, Optimus keeps all author, EXIF and copyright information contained within the photos — the compressional gains will be correspondingly lower.
|
36 |
|
37 |
+
Optimus supports the conversion of images to the new [*WebP* image format](https://www.keycdn.com/blog/convert-to-webp-the-successor-of-jpeg/).
|
38 |
|
39 |
+
> It is recommended to use the [WordPress Cache Enabler](https://wordpress.org/plugins/cache-enabler/) plugin to integrate the converted WebP images.
|
40 |
|
41 |
= Features =
|
42 |
* [Progressive JPEGs](https://optimus.io/support/progressive-jpegs/)
|
56 |
|
57 |
|
58 |
= Privacy =
|
59 |
+
* After the image optimization and transfer process, the *Optimus* server immediately deletes all the temporarily stored files. No files are stored!
|
60 |
* The Optimus servers are located in Germany.
|
61 |
|
62 |
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 1.4.3 =
|
100 |
+
* Increased timeout value to 180 seconds
|
101 |
+
|
102 |
= 1.4.2 =
|
103 |
* Allow to generate WebP images on already optimzed images (bulk optimizer)
|
104 |
|