diff --git a/CHANGELOG.md b/CHANGELOG.md index 5094eb5..6b5f3fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Notes for Amazon S3 for Craft CMS +## Unreleased + +### Fixed +- Fixed a bug where focal point detection would not work if aliases were used in the subfolder setting. ([#86](https://github.com/craftcms/aws-s3/pull/86)) + ## 1.2.8 - 2020-05-18 ### Added diff --git a/src/Volume.php b/src/Volume.php index aaf2779..464a8b6 100644 --- a/src/Volume.php +++ b/src/Volume.php @@ -387,7 +387,7 @@ public function detectFocalPoint(string $filePath): array $params = [ 'Image' => [ 'S3Object' => [ - 'Name' => $filePath, + 'Name' => Craft::parseEnv($filePath), 'Bucket' => Craft::parseEnv($this->bucket), ], ],