Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
lenvanessen committed Apr 19, 2024
2 parents 7c942fe + 1f37ddb commit a635fb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Release Notes for Cloudflare Image Transforms

## 1.0.1
- Add default image quality
- Cleanup

## 1.0.0
- Initial release
6 changes: 0 additions & 6 deletions src/CloudflareImageTransforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,4 @@ protected function settingsHtml(): ?string
'settings' => $this->getSettings(),
]);
}

private function attachEventHandlers(): void
{
// Register event handlers here ...
// (see https://craftcms.com/docs/4.x/extend/events.html to get started)
}
}
2 changes: 1 addition & 1 deletion src/ImageTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function buildTransformParams(ImageTransform $imageTransform): Collection
return Collection::make([
'width' => $imageTransform->width,
'height' => $imageTransform->height,
'quality' => $imageTransform->quality,
'quality' => $imageTransform->quality ?: Craft::$app->getConfig()->general->defaultImageQuality,
'format' => $this->getFormatValue($imageTransform),
'fit' => $this->getFitValue($imageTransform),
'background' => $this->getBackgroundValue($imageTransform),
Expand Down

0 comments on commit a635fb8

Please sign in to comment.