Skip to content

Commit

Permalink
Merge branch 'v3' of https://github.com/craftcms/cms into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
brandonkelly committed Sep 13, 2022
2 parents 1e34e4f + 67e61e0 commit 3931134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- Fixed a UI bug where autosuggest menus weren’t getting filtered when first opened for inputs with existing values. ([#11896](https://github.com/craftcms/cms/issues/11896))
- Fixed a bug where Entry Type condition rules weren’t working for conditions that were applied to a single element. ([#11914](https://github.com/craftcms/cms/issues/11914))
- Fixed a bug where form action keyboard shortcuts weren’t available when a custom select menu was focused. ([#11919](https://github.com/craftcms/cms/issues/11919))
- Fixed a bug where transforming an animated GIF into a WebP file would only include the first frame. ([#11889](https://github.com/craftcms/cms/issues/11889))

### Security
- Fixed XSS vulnerabilities.
Expand Down
2 changes: 2 additions & 0 deletions src/image/Raster.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public function crop(int $x1, int $x2, int $y1, int $y2): self
$gif = $this->_instance->create($newSize);
$gif->layers()->remove(0);

$this->_image->layers()->coalesce();
foreach ($this->_image->layers() as $layer) {
$croppedLayer = $layer->crop($startingPoint, $newSize);
$gif->layers()->add($croppedLayer);
Expand Down Expand Up @@ -701,6 +702,7 @@ private function _getSaveOptions(?int $quality, ?string $extension = null): arra
return ['jpeg_quality' => $quality, 'flatten' => true];

case 'gif':
case 'webp':
return ['animated' => $this->_isAnimatedGif];

case 'png':
Expand Down

0 comments on commit 3931134

Please sign in to comment.