MM-49395: Increase compression for previews and emojis (#21985)
We also reduce the max size of uploaded emojis to 512KiB. https://mattermost.atlassian.net/browse/MM-49395 ```release-note Max size of uploaded emojis is now reduced to 512KiB to reduce image download bandwidth. ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1078292ac6
Коммит
a83170e753
@@ -45,7 +45,9 @@ func NewEncoder(opts EncoderOptions) (*Encoder, error) {
|
||||
e.sem = make(chan struct{}, opts.ConcurrencyLevel)
|
||||
}
|
||||
e.opts = opts
|
||||
e.pngEncoder = &png.Encoder{}
|
||||
e.pngEncoder = &png.Encoder{
|
||||
CompressionLevel: png.BestCompression,
|
||||
}
|
||||
return &e, nil
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user