Skip to content

Commit

Permalink
Merge branch 'release/1.4.12' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 1, 2018
2 parents ef598e8 + 70b13fb commit 5d836e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/imagetransforms/ImgixImageTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d836e5

Please sign in to comment.