Merge pull request #36365 from nextcloud/backport/36352/stable24

[stable24] imaginary - add tiff to supported formats
This commit is contained in:
Vincent Petry 2023-01-26 09:43:28 +01:00 committed by GitHub
commit fb3261a062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ class Imaginary extends ProviderV2 {
}
public static function supportedMimeTypes(): string {
return '/image\/(bmp|x-bitmap|png|jpeg|gif|heic|svg|webp)/';
return '/image\/(bmp|x-bitmap|png|jpeg|gif|heic|svg|tiff|webp)/';
}
public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop): ?IImage {