Add bmp to image codec list (#4653)

This commit is contained in:
dogwithakeyboard 2024-03-05 22:56:17 +00:00 committed by GitHub
parent 22986097c4
commit f1f6e84aa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (d *Decorator) Decorate(ctx context.Context, fs models.FS, f models.File) (
isClip := true
// This list is derived from ffmpegImageThumbnail in pkg/image/thumbnail. If one gets updated, the other should be as well
for _, item := range []string{"png", "mjpeg", "webp"} {
for _, item := range []string{"png", "mjpeg", "webp", "bmp"} {
if item == probe.VideoCodec {
isClip = false
}