Skip to content

Commit

Permalink
Fix a bug which caused images to not be transformed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgrayisok committed Jul 16, 2024
1 parent 0e75d32 commit aba85a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes for Servd Assets and Helpers

## 2.10.10 - 2024-07-16

### Fixed

- Fixed a bug which caused images to be served in their original size instead of being transformed

## 2.10.9 - 2024-07-15

### Updated
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "servd/craft-asset-storage",
"description": "Servd Asset Storage and Helpers integration for Craft CMS",
"version": "2.10.9",
"version": "2.10.10",
"type": "craft-plugin",
"keywords": [
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/AssetsPlatform/AssetsPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function handleAssetTransform(Asset $asset, $transform, $force = true)

//If the output type is svg, no transform is occuring, just let Craft handle it
//This should return a link to the CDN path without optimisation
if ($transform->format ?? 'auto' === 'svg') {
if (($transform->format ?? 'auto') === 'svg') {
return $this->getFileUrl($asset);
}

Expand Down

0 comments on commit aba85a8

Please sign in to comment.