reGenerate Thumbnails Advanced - Version 1.6.2.1

Version Description

Added more details to the info column

=

Download this release

Release Info

Developer turcuciprian
Plugin Icon 128x128 reGenerate Thumbnails Advanced
Version 1.6.2.1
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.2.1

Files changed (4) hide show
  1. bundle.js +31 -5
  2. inc/rest.php +0 -2
  3. readme.txt +10 -2
  4. regenerate-thumbnails-advanced.php +1 -1
bundle.js CHANGED
@@ -83453,21 +83453,47 @@ class ProgressTable extends __WEBPACK_IMPORTED_MODULE_0_react__["Component"] {
83453
  this.props.statusInfo.forEach((element, index) => {
83454
  let shortPixelContent = [];
83455
  if (element != null) {
83456
- if (element.spData && element.spData.Status.Code == 2 && element.spData.percent) {
 
 
 
 
 
83457
  shortPixelContent.push(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83458
  "div",
83459
  { key: 'spStatus' + index },
83460
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83461
  "p",
83462
  null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83463
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83464
  "a",
83465
  { href: "https://shortpixel.com/h/af/IQFR7OU381753" },
83466
- "Compress image"
83467
  ),
83468
- " ",
83469
- element.spData.percent,
83470
- "% with ",
83471
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83472
  "a",
83473
  { href: "https://shortpixel.com/h/af/IQFR7OU381753" },
83453
  this.props.statusInfo.forEach((element, index) => {
83454
  let shortPixelContent = [];
83455
  if (element != null) {
83456
+ const spData = element.spData ? element.spData : null;
83457
+ console.log('element', spData);
83458
+ const status = spData.status && spData ? spData.status : null;
83459
+ const code = status && status.Code ? status.Code : null;
83460
+ const percent = spData.percent ? spData.percent : null;
83461
+ if (percent) {
83462
  shortPixelContent.push(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83463
  "div",
83464
  { key: 'spStatus' + index },
83465
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83466
  "p",
83467
  null,
83468
+ "Win ",
83469
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83470
+ "b",
83471
+ null,
83472
+ percent
83473
+ ),
83474
+ "% in size on this image by compressing it with ",
83475
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83476
+ "a",
83477
+ { href: "https://shortpixel.com/h/af/IQFR7OU381753" },
83478
+ "ShortPixel"
83479
+ ),
83480
+ "."
83481
+ )
83482
+ ));
83483
+ } else {
83484
+ shortPixelContent.push(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83485
+ "div",
83486
+ { key: 'spStatus' + index },
83487
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83488
+ "p",
83489
+ null,
83490
+ "click Generate again to see how much you can gain in size by ",
83491
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83492
  "a",
83493
  { href: "https://shortpixel.com/h/af/IQFR7OU381753" },
83494
+ "Compressing image"
83495
  ),
83496
+ " with ",
 
 
83497
  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
83498
  "a",
83499
  { href: "https://shortpixel.com/h/af/IQFR7OU381753" },
inc/rest.php CHANGED
@@ -242,7 +242,6 @@ class rtaREST
242
  $logstatus = 'Processed';
243
 
244
  //if shortpixel is enabled
245
- // http://sc-api-ai.shortpixel.com/client/w_400,h_215,q_lossy,ret_json/http://www.thesupercarblog.com/wp-content/uploads/2017/09/Audi-R8_V10_RWS-Frankfurt-2017-1-1-1024x768.jpg
246
  list($width, $height, $type, $attr) = getimagesize($imageUrl);
247
  $size = filesize(get_attached_file($image_id));
248
  $spData = file_get_contents('http://sc-api-ai.shortpixel.com/client/w_'.$width.',h_'.$height.',q_lossy,ret_json/'.$imageUrl.'');
@@ -256,7 +255,6 @@ class rtaREST
256
  $error[] = array('offset' => ($offset + 1), 'error' => $error, 'logstatus' => $logstatus, 'imgUrl' => $filename_only, 'startTime' => $data['startTime'], 'fromTo' => $data['fromTo'], 'type' => $data['type'], 'period' => $period);
257
  }
258
  }
259
-
260
  } else {
261
  $logstatus = 'No pictures uploaded';
262
  $error[] = array('offset' => 0, 'error' => $error, 'logstatus' => $logstatus, 'imgUrl' => '');
242
  $logstatus = 'Processed';
243
 
244
  //if shortpixel is enabled
 
245
  list($width, $height, $type, $attr) = getimagesize($imageUrl);
246
  $size = filesize(get_attached_file($image_id));
247
  $spData = file_get_contents('http://sc-api-ai.shortpixel.com/client/w_'.$width.',h_'.$height.',q_lossy,ret_json/'.$imageUrl.'');
255
  $error[] = array('offset' => ($offset + 1), 'error' => $error, 'logstatus' => $logstatus, 'imgUrl' => $filename_only, 'startTime' => $data['startTime'], 'fromTo' => $data['fromTo'], 'type' => $data['type'], 'period' => $period);
256
  }
257
  }
 
258
  } else {
259
  $logstatus = 'No pictures uploaded';
260
  $error[] = array('offset' => 0, 'error' => $error, 'logstatus' => $logstatus, 'imgUrl' => '');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced, easy, intuitive, media, oneclick, singleclick, image, images, pdf
5
  Requires at least: 4.0
6
  Tested up to: 4.9.5
7
- Stable tag: 1.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -205,6 +205,10 @@ Javascript error fix
205
  Cors security added for routes
206
  Added ShortPixel informative data
207
 
 
 
 
 
208
  == Upgrade Notice ==
209
 
210
  = 1.4.2.1 =
@@ -355,4 +359,8 @@ nothing effected in db. It's safe to update
355
  = 1.6.1.4 =
356
  nothing effected in db. It's safe to update
357
 
358
- = 1.6.2 =
 
 
 
 
4
  Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced, easy, intuitive, media, oneclick, singleclick, image, images, pdf
5
  Requires at least: 4.0
6
  Tested up to: 4.9.5
7
+ Stable tag: 1.6.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
205
  Cors security added for routes
206
  Added ShortPixel informative data
207
 
208
+ = 1.6.2.1 =
209
+ Added more details to the info column
210
+
211
+
212
  == Upgrade Notice ==
213
 
214
  = 1.4.2.1 =
359
  = 1.6.1.4 =
360
  nothing effected in db. It's safe to update
361
 
362
+ = 1.6.2 =
363
+ nothing effected in db. It's safe to update
364
+
365
+ = 1.6.2.1 =
366
+ nothing effected in db. It's safe to update
regenerate-thumbnails-advanced.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: reGenerate Thumbnails - advanced
4
  Plugin URI: http://ciprianturcu.com
5
  Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
6
- Version: 1.6.2
7
  Author: turcuciprian
8
  Author URI: http://ciprianturcu.com
9
  License: GPLv2 or later
3
  Plugin Name: reGenerate Thumbnails - advanced
4
  Plugin URI: http://ciprianturcu.com
5
  Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
6
+ Version: 1.6.2.1
7
  Author: turcuciprian
8
  Author URI: http://ciprianturcu.com
9
  License: GPLv2 or later