feat(thumbnails): make ggp thumbnails work

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2024-11-07 17:18:28 +01:00
parent 1571d39a74
commit 2b8b853c4d
4 changed files with 71 additions and 15 deletions
@@ -89,11 +89,11 @@ func (g GifGenerator) imageToPaletted(img image.Image, p color.Palette) *image.P
// or nil if the type is not supported.
func GeneratorFor(fileType, processorID string) (Generator, error) {
switch strings.ToLower(fileType) {
case typePng, typeJpg, typeJpeg, typeGgs:
case typePng, typeJpg, typeJpeg, typeGgs, typeGgp:
return NewSimpleGenerator(fileType, processorID)
case typeGif:
return NewGifGenerator(fileType, processorID)
default:
return nil, errors.ErrNoEncoderForType
return nil, errors.ErrNoGeneratorForType
}
}