ShortPixel Image Optimizer - Version 4.7.1

Version Description

  • Deactivate conversion from PNG to JPG for the previous images, until we find a solution for the posts that refer these images.
  • Minor fix to bulk (last item in Media Library sometimes was left unoptimized)
Download this release

Release Info

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

Code changes from version 4.7.0 to 4.7.1

class/view/shortpixel_view.php CHANGED
@@ -986,7 +986,7 @@ class ShortPixelView {
986
  <td>
987
  <input name="png2jpg" type="checkbox" id="resize" <?php echo( $convertPng2Jpg );?>> <?php _e('Automatically convert the PNG images to JPEG if possible.','shortpixel-image-optimiser');?>
988
  <p class="settings-info">
989
- <?php _e('Converts all PNGs that don\'t have transparent pixels to JPEG. This can dramatically reduce the file size, especially if you have pictures that are saved in PNG format.','shortpixel-image-optimiser');?>
990
  </p>
991
  </td>
992
  </tr>
986
  <td>
987
  <input name="png2jpg" type="checkbox" id="resize" <?php echo( $convertPng2Jpg );?>> <?php _e('Automatically convert the PNG images to JPEG if possible.','shortpixel-image-optimiser');?>
988
  <p class="settings-info">
989
+ <?php _e('Converts all PNGs that don\'t have transparent pixels to JPEG. This can dramatically reduce the file size, especially if you have pictures that are saved in PNG format. <strong>It currently works only on new media uploaded and provides no backup.</strong>','shortpixel-image-optimiser');?>
990
  </p>
991
  </td>
992
  </tr>
class/wp-short-pixel.php CHANGED
@@ -1167,7 +1167,8 @@ class WPShortPixel {
1167
 
1168
  private function sendToProcessing($itemHandler, $compressionType = false, $onlyThumbs = false) {
1169
 
1170
- if($itemHandler->getType() == ShortPixelMetaFacade::MEDIA_LIBRARY_TYPE) { //currently only for ML
 
1171
  $rawMeta = $this->checkConvertMediaPng2Jpg($itemHandler->getRawMeta(), $itemHandler->getId());
1172
 
1173
  if(isset($rawMeta['type']) && $rawMeta['type'] == 'image/jpeg') {
1167
 
1168
  private function sendToProcessing($itemHandler, $compressionType = false, $onlyThumbs = false) {
1169
 
1170
+ //for the moment deactivate the conversion for existing images
1171
+ if(false && $itemHandler->getType() == ShortPixelMetaFacade::MEDIA_LIBRARY_TYPE) { //currently only for ML
1172
  $rawMeta = $this->checkConvertMediaPng2Jpg($itemHandler->getRawMeta(), $itemHandler->getId());
1173
 
1174
  if(isset($rawMeta['type']) && $rawMeta['type'] == 'image/jpeg') {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ShortPixel
3
  Tags: compress, image, compression, optimize, image optimizer, image optimiser, image compression, resize, compress pdf, compress jpg, compress png, image compression
4
  Requires at least: 3.2.0
5
  Tested up to: 4.8
6
- Stable tag: 4.7.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -227,6 +227,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
227
 
228
  == Changelog ==
229
 
 
 
 
 
230
  = 4.7.0 =
231
  * convert PNG images to JPG option
232
  * action called upon optimizing an image: do_action('shortpixel_image_optimized', $post_id);
3
  Tags: compress, image, compression, optimize, image optimizer, image optimiser, image compression, resize, compress pdf, compress jpg, compress png, image compression
4
  Requires at least: 3.2.0
5
  Tested up to: 4.8
6
+ Stable tag: 4.7.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
227
 
228
  == Changelog ==
229
 
230
+ = 4.7.1 =
231
+ * Deactivate conversion from PNG to JPG for the previous images, until we find a solution for the posts that refer these images.
232
+ * Minor fix to bulk (last item in Media Library sometimes was left unoptimized)
233
+
234
  = 4.7.0 =
235
  * convert PNG images to JPG option
236
  * action called upon optimizing an image: do_action('shortpixel_image_optimized', $post_id);
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
- * Version: 4.7.0
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
@@ -18,7 +18,7 @@ define('SHORTPIXEL_PLUGIN_FILE', __FILE__);
18
 
19
  define('SHORTPIXEL_AFFILIATE_CODE', '');
20
 
21
- define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.7.0");
22
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
23
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
24
  define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
+ * Version: 4.7.1
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
18
 
19
  define('SHORTPIXEL_AFFILIATE_CODE', '');
20
 
21
+ define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.7.1");
22
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
23
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
24
  define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');