ShortPixel Image Optimizer - Version 1.6.8

Version Description

  • Bulk Processing optimized to skip images that were already optimized with the same options when Bulk Processing is run multiple times
  • changed the place where original (backup) files are stored
  • extra check for missing(expired) processed images
Download this release

Release Info

Developer ShortPixel
Plugin Icon 128x128 ShortPixel Image Optimizer
Version 1.6.8
Comparing to
See all releases

Code changes from version 1.6.7 to 1.6.8

Files changed (3) hide show
  1. readme.txt +7 -1
  2. shortpixel_api.php +6 -8
  3. wp-shortpixel.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: AlexSP
4
  Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, tinypng, jpegtran,image, image optimisation, shrink, picture, photo, optimize photos, compress, performance, tinypng, crunch, pngquant, attachment, optimize, pictures,fast, images, image files, image quality, lossy, upload, kraken, resize, seo, smushit, optipng, kraken image optimizer, ewww, photo optimization, gifsicle, image optimizer, images, krakenio, png, gmagick, image optimize
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1
7
- Stable tag: 1.6.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,12 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
 
110
  = 1.6.7 =
111
 
112
  * extra check for exif_imagetype function
4
  Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, tinypng, jpegtran,image, image optimisation, shrink, picture, photo, optimize photos, compress, performance, tinypng, crunch, pngquant, attachment, optimize, pictures,fast, images, image files, image quality, lossy, upload, kraken, resize, seo, smushit, optipng, kraken image optimizer, ewww, photo optimization, gifsicle, image optimizer, images, krakenio, png, gmagick, image optimize
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1
7
+ Stable tag: 1.6.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.6.8 =
111
+
112
+ * Bulk Processing optimized to skip images that were already optimized with the same options when Bulk Processing is run multiple times
113
+ * changed the place where original (backup) files are stored
114
+ * extra check for missing(expired) processed images
115
+
116
  = 1.6.7 =
117
 
118
  * extra check for exif_imagetype function
shortpixel_api.php CHANGED
@@ -10,23 +10,19 @@ class shortpixel_api {
10
  private $_maxAttempts = 10;
11
  private $_apiEndPoint = 'https://api.shortpixel.com/v1/reducer.php';
12
 
13
- public function setCompressionType($compressionType)
14
- {
15
  $this->_compressionType = $compressionType;
16
  }
17
 
18
- public function getCompressionType()
19
- {
20
  return $this->_compressionType;
21
  }
22
 
23
- public function setApiKey($apiKey)
24
- {
25
  $this->_apiKey = $apiKey;
26
  }
27
 
28
- public function getApiKey()
29
- {
30
  return $this->_apiKey;
31
  }
32
 
@@ -99,6 +95,8 @@ class shortpixel_api {
99
  return 'Quota exceeded</br>';
100
  case -17:
101
  return 'Wrong API Key</br>';
 
 
102
  default:
103
  //handle error
104
  return $data->Status->Message;
10
  private $_maxAttempts = 10;
11
  private $_apiEndPoint = 'https://api.shortpixel.com/v1/reducer.php';
12
 
13
+ public function setCompressionType($compressionType) {
 
14
  $this->_compressionType = $compressionType;
15
  }
16
 
17
+ public function getCompressionType() {
 
18
  return $this->_compressionType;
19
  }
20
 
21
+ public function setApiKey($apiKey) {
 
22
  $this->_apiKey = $apiKey;
23
  }
24
 
25
+ public function getApiKey() {
 
26
  return $this->_apiKey;
27
  }
28
 
95
  return 'Quota exceeded</br>';
96
  case -17:
97
  return 'Wrong API Key</br>';
98
+ case -302:
99
+ return 'Images does not exists</br>';
100
  default:
101
  //handle error
102
  return $data->Status->Message;
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimiser
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel is an image compression tool that helps improve your website performance. The plugin optimises images automatically using both lossy and lossless compression. Resulting, smaller, images are no different in quality from the original. To install: 1) Click the "Activate" link to the left of this description. 2) <a href="https://shortpixel.com/wp-apikey" target="_blank">Free Sign up</a> for your unique API Key . 3) Check your email for your API key. 4) Use your API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. 5) Done!
6
- * Version: 1.6.7
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -600,7 +600,7 @@ HTML;
600
 
601
  $statHTML = <<< HTML
602
  <a id="facts"></a>
603
- <h3>ShortPixlel Facts & Figures</h3>
604
  <table class="form-table">
605
  <tbody><tr>
606
  <th scope="row"><label for="totalFiles">Your total number of processed files:</label></th>
3
  * Plugin Name: ShortPixel Image Optimiser
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel is an image compression tool that helps improve your website performance. The plugin optimises images automatically using both lossy and lossless compression. Resulting, smaller, images are no different in quality from the original. To install: 1) Click the "Activate" link to the left of this description. 2) <a href="https://shortpixel.com/wp-apikey" target="_blank">Free Sign up</a> for your unique API Key . 3) Check your email for your API key. 4) Use your API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. 5) Done!
6
+ * Version: 1.6.8
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
600
 
601
  $statHTML = <<< HTML
602
  <a id="facts"></a>
603
+ <h3>ShortPixel Facts & Figures</h3>
604
  <table class="form-table">
605
  <tbody><tr>
606
  <th scope="row"><label for="totalFiles">Your total number of processed files:</label></th>