Changeset 2690566
- Timestamp:
- 03/08/2022 07:30:26 AM (4 years ago)
- Location:
- ilab-media-tools/trunk
- Files:
-
- 7 edited
-
classes/Tools/Imgix/ImgixTool.php (modified) (3 diffs)
-
classes/Tools/Imgix/ImgixToolSettings.php (modified) (3 diffs)
-
classes/Tools/Storage/Driver/S3/WasabiStorage.php (modified) (1 diff)
-
config/imgix.config.php (modified) (1 diff)
-
ilab-media-tools.php (modified) (2 diffs)
-
lib/mcloud-wp-media/imagify-php/class-imagify.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ilab-media-tools/trunk/classes/Tools/Imgix/ImgixTool.php
r2687503 r2690566 347 347 } 348 348 349 $doNotUrlEncode = apply_filters('media-cloud/dynamic-images/do-not-url-encode', $this->settings->doNotUrlEncode); 349 350 $result = [ 350 $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], urlencode($imageFile)), $params),351 $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], $doNotUrlEncode ? $imageFile : urlencode($imageFile)), $params), 351 352 $size[0], 352 353 $size[1] … … 500 501 501 502 503 $doNotUrlEncode = apply_filters('media-cloud/dynamic-images/do-not-url-encode', $this->settings->doNotUrlEncode); 502 504 $result = [ 503 $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], urlencode($imageFile)), ($skipParams) ? [] : $params),505 $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], $doNotUrlEncode ? $imageFile : urlencode($imageFile)), ($skipParams) ? [] : $params), 504 506 $meta['width'], 505 507 $meta['height'], … … 754 756 } 755 757 756 return $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], urlencode($key)), $params); 758 $doNotUrlEncode = apply_filters('media-cloud/dynamic-images/do-not-url-encode', $this->settings->doNotUrlEncode); 759 return $imgix->createURL(str_replace(['%2F', '%2540', '%40'], ['/', '@', '@'], $doNotUrlEncode ? $key : urlencode($key)), $params); 757 760 } 758 761 -
ilab-media-tools/trunk/classes/Tools/Imgix/ImgixToolSettings.php
r2526861 r2690566 36 36 * @property ?string cropMode 37 37 * @property ?string cropPosition 38 * @property bool doNotUrlEncode 38 39 */ 39 40 class ImgixToolSettings extends DynamicImagesToolSettings { … … 57 58 'cropMode' => ['mcloud-imgix-crop-mode', null, null], 58 59 'cropPosition' => ['mcloud-imgix-crop-position', null, 'center'], 60 'doNotUrlEncode' => ['mcloud-imgix-do-not-urlencode', null, false], 59 61 ]; 60 62 … … 131 133 132 134 public function __isset($name) { 133 if (in_array($name, ['imgixDomains', 'noGifSizes', 'keepThumbnails' ])) {135 if (in_array($name, ['imgixDomains', 'noGifSizes', 'keepThumbnails', 'doNotUrlEncode'])) { 134 136 return true; 135 137 } -
ilab-media-tools/trunk/classes/Tools/Storage/Driver/S3/WasabiStorage.php
r2687503 r2690566 196 196 'us-east-2' => 'US East 2', 197 197 'us-west-1' => 'US West', 198 'eu-central-1' => 'EU' 198 'us-central' => 'US Central', 199 'eu-central-1' => 'EU (Amsterdam)', 200 'eu-west-1' => 'EU (London)', 201 'eu-west-2' => 'EU (Paris)', 202 'ap-northeast-1' => 'Asia Pacific (Tokyo)', 203 'ap-northeast-2' => 'Asia Pacific (Osaka)', 199 204 ]) 200 205 ->endStep() -
ilab-media-tools/trunk/config/imgix.config.php
r2526861 r2690566 153 153 "title" => "Remove Extra Query Variables", 154 154 "description" => "Removes extra query variables from the imgix URL such as the <code>ixlib</code> and <code>wpsize</code> variables.", 155 "type" => "checkbox", 156 "default" => false 157 ], 158 "mcloud-imgix-do-not-urlencode" => [ 159 "title" => "Do Not URL Encode File Names", 160 "description" => "Disables URL encoding file names, which may improve compatibility for certain unicode characters.", 155 161 "type" => "checkbox", 156 162 "default" => false -
ilab-media-tools/trunk/ilab-media-tools.php
r2687503 r2690566 6 6 Description: Automatically upload media to Amazon S3 and integrate with Imgix, a real-time image processing CDN. Boosts site performance and simplifies workflows. 7 7 Author: interfacelab 8 Version: 4.3. 88 Version: 4.3.11 9 9 Requires PHP: 7.4 10 10 Author URI: http://interfacelab.io … … 96 96 97 97 // Version Defines 98 define( 'MEDIA_CLOUD_VERSION', '4.3. 8' );98 define( 'MEDIA_CLOUD_VERSION', '4.3.11' ); 99 99 define( 'MEDIA_CLOUD_INFO_VERSION', '4.0.2' ); 100 100 define( 'MCLOUD_IS_BETA', false ); -
ilab-media-tools/trunk/lib/mcloud-wp-media/imagify-php/class-imagify.php
r2370695 r2690566 96 96 'image' => curl_file_create( $image ), 97 97 'data' => json_encode( 98 array(98 (object)array( 99 99 'aggressive' => ( 'aggressive' === $options['level'] ) ? true : false, 100 100 'ultra' => ( 'ultra' === $options['level'] ) ? true : false, 101 'resize' => $options['resize'],101 'resize' => (object)$options['resize'], 102 102 'keep_exif' => $options['keep_exif'], 103 103 ) -
ilab-media-tools/trunk/readme.txt
r2687503 r2690566 6 6 License: GPLv3 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-3.0.html 8 Stable tag: 4.3. 88 Stable tag: 4.3.11 9 9 Requires PHP: 7.4 10 10 … … 105 105 106 106 == Changelog == 107 108 = 4.3.11 - 3/8/2022 = 109 110 * Added new option to imgix to disable `urlencode()` the filename which may cause issues for certain unicode characters in filenames. If imgix is working fine for you, you should not turn this on. 111 * Fixed missing regions in the setup wizard for Wasabi 112 113 = 4.3.9 - 3/4/2022 = 114 115 * Fixed Imagify API integration. 107 116 108 117 = 4.3.8 - 3/2/2022 =
Note: See TracChangeset
for help on using the changeset viewer.