From faa445d48598d46751c0f133efae611f4960ba69 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 1 Feb 2018 13:52:38 -0500 Subject: [PATCH 1/2] Removed the `api-key` parameter from Imgix image transform URLs Signed-off-by: Andrew Welch --- src/imagetransforms/ImgixImageTransform.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imagetransforms/ImgixImageTransform.php b/src/imagetransforms/ImgixImageTransform.php index 693c85a4..3386daab 100644 --- a/src/imagetransforms/ImgixImageTransform.php +++ b/src/imagetransforms/ImgixImageTransform.php @@ -136,6 +136,8 @@ public static function getTransformUrl(Asset $asset, $transform, array $params = // No transform was passed in; so just auto all the things $params['auto'] = 'format,compress'; } + // Remove the api-key param + unset($params['api-key']); // Finally, create the Imgix URL for this transformed image $assetUri = self::getAssetUri($asset); $url = $builder->createURL($assetUri, $params); From 70b13fb16d2477a08552a421afac796c6ef4206e Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 1 Feb 2018 13:52:58 -0500 Subject: [PATCH 2/2] Version 1.4.12 Signed-off-by: Andrew Welch --- CHANGELOG.md | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 186b57d0..f81e31a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # ImageOptimize Changelog +## 1.4.12 - 2018.02.01 +### Changed +* Removed the `api-key` parameter from Imgix image transform URLs + ## 1.4.11 - 2018.01.30 ### Changed * Renamed the composer package name to `craft-imageoptimize` diff --git a/composer.json b/composer.json index d322aa10..33e2445e 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "nystudio107/craft-imageoptimize", "description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like Imgix, with zero template changes.", "type": "craft-plugin", - "version": "1.4.11", + "version": "1.4.12", "keywords": [ "craft", "cms",