forked from GNUsocial/gnu-social
[ImageEncoder] Change preferred type to always be WEBP
This commit is contained in:
parent
1b1b3007db
commit
3a7e92ed01
@ -34,17 +34,9 @@ class ImageEncoder extends Plugin
|
||||
{
|
||||
/**
|
||||
* Several obscure file types should be normalized to WebP on resize.
|
||||
*
|
||||
* Keeps only GIF (if animated) and WebP formats
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function preferredType(): int
|
||||
{
|
||||
if ($this->type == IMAGETYPE_GIF && $this->animated) {
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
return IMAGETYPE_WEBP;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user