Skip to content

Commit

Permalink
Add WebP to MediaFormats #26628 (#26805)
Browse files Browse the repository at this point in the history
Changes the default content disposition for WebP attachments
from *download* to *inline*.

Add WebP codec support side-effect to decode.go. To prevent future
issues caused by possible changes in emoji.go.
  • Loading branch information
Obbi89 committed Apr 26, 2024
1 parent 4ba736f commit 322a500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/channels/app/imaging/decode.go
Expand Up @@ -16,6 +16,7 @@ import (
_ "github.com/oov/psd"
_ "golang.org/x/image/bmp"
_ "golang.org/x/image/tiff"
_ "golang.org/x/image/webp"
)

// DecoderOptions holds configuration options for an image decoder.
Expand Down
1 change: 1 addition & 0 deletions server/platform/shared/web/files.go
Expand Up @@ -27,6 +27,7 @@ var MediaContentTypes = [...]string{
"image/bmp",
"image/gif",
"image/tiff",
"image/webp",
"video/avi",
"video/mpeg",
"video/mp4",
Expand Down

0 comments on commit 322a500

Please sign in to comment.