diff --git a/classes/Tools/Debugging/DebuggingTool.php b/classes/Tools/Debugging/DebuggingTool.php index f332e069..1337ab6b 100755 --- a/classes/Tools/Debugging/DebuggingTool.php +++ b/classes/Tools/Debugging/DebuggingTool.php @@ -135,6 +135,8 @@ public function generateBug() { $probeData['WordPress Settings']['upload_path'] = get_option('upload_path'); $probeData['WordPress Settings']['upload_url_path'] = get_option('upload_url_path'); + $probeData['Image Sizes'] = ilab_get_image_sizes(); + $probeData['Globals'] = []; $probeData['Globals']['UPLOADS'] = defined('UPLOADS') ? constant('UPLOADS') : null; diff --git a/classes/Tools/DynamicImages/DynamicImagesTool.php b/classes/Tools/DynamicImages/DynamicImagesTool.php index 30324156..c75c0e77 100755 --- a/classes/Tools/DynamicImages/DynamicImagesTool.php +++ b/classes/Tools/DynamicImages/DynamicImagesTool.php @@ -178,6 +178,7 @@ public function setup() { $sizeWidth = intval($sizeData['width']); $sizeHeight = intval($sizeData['height']); $sizeS3 = arrayPath($metadata, "sizes/$sizeKey/s3", $metadata['s3']); + $cropData = arrayPath($metadata, "sizes/$sizeKey/crop", []); if (!empty($sizeData['crop'])) { $newWidth = $sizeWidth; @@ -194,6 +195,10 @@ public function setup() { 's3' => $sizeS3 ]; + if (!empty($cropData)) { + $metadata['sizes'][$sizeKey]['crop'] = $cropData; + } + $didChange = true; } diff --git a/ilab-media-tools.php b/ilab-media-tools.php index 105f2076..ba7707b0 100755 --- a/ilab-media-tools.php +++ b/ilab-media-tools.php @@ -5,7 +5,7 @@ Plugin URI: https://github.com/interfacelab/ilab-media-tools Description: Automatically upload media to Amazon S3 and integrate with Imgix, a real-time image processing CDN. Boosts site performance and simplifies workflows. Author: interfacelab -Version: 3.3.18 +Version: 3.3.20 Author URI: http://interfacelab.io */ // Copyright (c) 2016 Interfacelab LLC. All rights reserved. @@ -93,7 +93,7 @@ } // Version Defines -define( 'MEDIA_CLOUD_VERSION', '3.3.18' ); +define( 'MEDIA_CLOUD_VERSION', '3.3.20' ); define( 'MEDIA_CLOUD_INFO_VERSION', '1.0.1' ); define( 'MCLOUD_IS_BETA', false ); // Directory defines diff --git a/readme.txt b/readme.txt index b8deca8d..8487ce8c 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Requires at least: 4.4 Tested up to: 5.3 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html -Stable tag: 3.3.18 +Stable tag: 3.3.20 Requires PHP: 5.6.4 Automatically store media on Amazon S3, Google Cloud Storage, DigitalOcean Spaces + others. Serve CSS/JS assets through CDNs. Integrate with Imgix. @@ -108,6 +108,14 @@ No, I'm just one very enthusiastic customer. == Changelog == += 3.3.20 = + +* Fix for Imgix crop data being lost when upgrading metadata. + += 3.3.19 = + +* Fix for pull assets not functioning correctly. You should no longer receive an error message and asset pull will work. All you need to do to enable asset pull is supply the base URL for your CDN in the settings and make sure all of the Push Settings are disabled. + = 3.3.18 = * Fix for NOTICE "error" when using DigitalOcean or another S3 compatible service