Kraken.io Image Optimizer - Version 1.0.5.2

Version Description

  • Removed hack which allows uploading of filenames with non-Latin alphabet, since Kraken API now supports it.
  • Updated readme with information about free account.
Download this release

Release Info

Developer karim79
Plugin Icon 128x128 Kraken.io Image Optimizer
Version 1.0.5.2
Comparing to
See all releases

Code changes from version 1.0.5.1 to 1.0.5.2

Files changed (2) hide show
  1. kraken.php +5 -14
  2. readme.txt +21 -6
kraken.php CHANGED
@@ -21,8 +21,8 @@
21
  * Plugin URI: http://wordpress.org/plugins/kraken-image-optimizer/
22
  * Description: This plugin allows you to optimize your WordPress images through the Kraken API, the world's most advanced image optimization solution.
23
  * Author: Karim Salman
24
- * Version: 1.0.5.1
25
- * Stable Tag: 1.0.5.1
26
  * Author URI: https://kraken.io
27
  * License GPL2
28
  */
@@ -464,26 +464,17 @@ if ( !class_exists( 'Wp_Kraken' ) ) {
464
  $lossy = $settings['api_lossy'] === "lossy";
465
  }
466
 
467
- $path_parts = pathinfo( $image_path );
468
- $tmp_filename = $path_parts['dirname'] . '/kraken_' . md5( $path_parts['filename'] );
469
- if ( !empty( $path_parts['extension'] ) ) {
470
- $tmp_filename .= '.' . $path_parts['extension'];
471
- }
472
-
473
- copy( $image_path, $tmp_filename );
474
-
475
  $params = array(
476
- "file" => $tmp_filename,
477
  "wait" => true,
478
- "lossy" => $lossy
 
479
  );
480
 
481
  $data = $kraken->upload( $params );
482
 
483
  $data['type'] = !empty( $type ) ? $type : $settings['api_lossy'];
484
 
485
- unlink( $tmp_filename );
486
-
487
  return $data;
488
  }
489
 
21
  * Plugin URI: http://wordpress.org/plugins/kraken-image-optimizer/
22
  * Description: This plugin allows you to optimize your WordPress images through the Kraken API, the world's most advanced image optimization solution.
23
  * Author: Karim Salman
24
+ * Version: 1.0.5.2
25
+ * Stable Tag: 1.0.5.2
26
  * Author URI: https://kraken.io
27
  * License GPL2
28
  */
464
  $lossy = $settings['api_lossy'] === "lossy";
465
  }
466
 
 
 
 
 
 
 
 
 
467
  $params = array(
468
+ "file" => $image_path,
469
  "wait" => true,
470
+ "lossy" => $lossy,
471
+ "origin" => "wp"
472
  );
473
 
474
  $data = $kraken->upload( $params );
475
 
476
  $data['type'] = !empty( $type ) ? $type : $settings['api_lossy'];
477
 
 
 
478
  return $data;
479
  }
480
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Kraken Image Optimizer ===
2
  Contributors: karim79
3
- Tags: Image Optimizer, Optimize, Images, Media, Performance, SEO, smushit, smush.it, compress, kraken-image-optimizer, tinypng, jpegmini, ewww
4
  Requires at least: 3.0.1
5
  Tested up to: 4.1
6
  Donate link: https://kraken.io
7
- Stable tag: 1.0.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10
 
@@ -13,15 +13,25 @@ This plugin allows you to optimize your WordPress images through the Kraken API,
13
 
14
  == Description ==
15
 
16
- This plugin allows you to optimize new and existing Wordpress image uploads through [Kraken Image Optimizer's](https://kraken.io "Kraken Image Optimizer") API. Both lossless and lossy optimization modes are supported. Supported filetypes are JPEG, PNG and GIF. Maximum filesize limit is 16MB. For more details, including detailed documentation and plans and pricing, please visit [Kraken.io](https://kraken.io "Kraken Image Optimizer"). **Note: You will need to obtain a paid Kraken API key and secret to use this plugin**.
17
 
 
 
18
 
 
 
 
 
 
 
19
 
 
 
20
  * All images uploaded throught the media uploader are optimized on-the-fly. All generated thumbnails are optimized too.
21
  * All images already present in the media library can be optimized individually, or using the Bulk Action menu "Krak 'em all" feature.
22
  * This plugin does not require any root or command-line access. No compilation and installation of any binaries is necessary.
23
  * All optimization is carried out by sending images to Kraken.io's infrastructure, and pulling the optimized files to your Wordpress installation.
24
- * To use this plugin, you must obtain a full API key and secret from [https://kraken.io/plans](https://kraken.io/plans "Kraken Image Optimizer"). The Developer API key/secret will **not** work with this plugin.
25
  * You can use your Kraken API key and secret on as many sites/blogs as you like. We have no per-site license.
26
  * Works great with WPEngine hosted blogs, including the staging area.
27
  * Since version 1.0.4, the plugin will work with local WordPress installations; the client site does not need to be published on the web.
@@ -63,8 +73,9 @@ To install the Kraken Wordpress Plugin:
63
 
64
  = Can I test the plugin before I purchase an account from Kraken.io? =
65
 
66
- No, you can't. You can, however, directly contact Kraken.io support for a private demonstration, if you like.
67
- To test the performance and results of Kraken Image Optimizer, you can try the free Web Interface at https://kraken.io/web-interface
 
68
 
69
  = Where can I purchase an API key and secret? =
70
 
@@ -81,6 +92,10 @@ You will need to switch the Media Library from the Thumbnail view to the List vi
81
 
82
  == Changelog ==
83
 
 
 
 
 
84
  = 1.0.5.1 =
85
  * Tested with WordPress 4.1.
86
  * Better naming convention for temporary files created.
1
  === Kraken Image Optimizer ===
2
  Contributors: karim79
3
+ Tags: Image Optimizer, Optimize, Images, Media, Performance, SEO, smushit, smush.it, compress, kraken-image-optimizer, tinypng, jpegmini, ewww, pagespeed, pagespeed insights, sitespeed
4
  Requires at least: 3.0.1
5
  Tested up to: 4.1
6
  Donate link: https://kraken.io
7
+ Stable tag: 1.0.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10
 
13
 
14
  == Description ==
15
 
16
+ This plugin allows you to optimize new and existing Wordpress image uploads through [Kraken Image Optimizer's](https://kraken.io "Kraken Image Optimizer") API. Both lossless and intelligent lossy optimization modes are supported. Supported filetypes are JPEG, PNG and GIF. Maximum filesize limit is 16 MB. For more details, including detailed documentation and plans and pricing, please visit [Kraken.io](https://kraken.io "Kraken Image Optimizer").
17
 
18
+ = Get your FREE account with us =
19
+ Sign up for your [FREE Kraken.io Account](https://kraken.io/plans "Kraken.io - Plan and Pricing") and try out our plugin and the rest of our features now, including:
20
 
21
+ * API Access, with dozens of ready-to-use libraries and modules
22
+ * Web Interface PRO with Image Resizing and sync-to-Dropbox
23
+ * URL Paster
24
+ * Page Cruncher
25
+ * Optimization Stats and History
26
+ * ...and more.
27
 
28
+
29
+ = About the plugin =
30
  * All images uploaded throught the media uploader are optimized on-the-fly. All generated thumbnails are optimized too.
31
  * All images already present in the media library can be optimized individually, or using the Bulk Action menu "Krak 'em all" feature.
32
  * This plugin does not require any root or command-line access. No compilation and installation of any binaries is necessary.
33
  * All optimization is carried out by sending images to Kraken.io's infrastructure, and pulling the optimized files to your Wordpress installation.
34
+ * To use this plugin, you must obtain a full API key and secret from [https://kraken.io/plans](https://kraken.io/plans "Kraken.io - Plans and Pricing"). Our free account comes with a limited quota for testing our premium features, including this plugin.
35
  * You can use your Kraken API key and secret on as many sites/blogs as you like. We have no per-site license.
36
  * Works great with WPEngine hosted blogs, including the staging area.
37
  * Since version 1.0.4, the plugin will work with local WordPress installations; the client site does not need to be published on the web.
73
 
74
  = Can I test the plugin before I purchase an account from Kraken.io? =
75
 
76
+ Yes you can. All of our plans require that you first create your free Kraken account. No credit card is required, and we give you free testing quota of 50 MB, with which you can test all the features we offer, including this plugin.
77
+
78
+ Additionally, if you would like to test the performance and results of Kraken Image Optimizer, you can try the free Web Interface at https://kraken.io/web-interface which does not require any registration.
79
 
80
  = Where can I purchase an API key and secret? =
81
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.0.5.2 =
96
+ * Removed hack which allows uploading of filenames with non-Latin alphabet, since Kraken API now supports it.
97
+ * Updated readme with information about free account.
98
+
99
  = 1.0.5.1 =
100
  * Tested with WordPress 4.1.
101
  * Better naming convention for temporary files created.