Add geogebra previews

Co-authored-by: Florian Schade <fschade@owncloud.com>

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2023-11-27 15:31:38 +01:00
co-authored by Florian Schade
parent 1713041e14
commit c9f6b961f9
4 changed files with 93 additions and 12 deletions
@@ -103,7 +103,7 @@ func (e GifEncoder) MimeType() string {
// or nil if the type is not supported.
func EncoderForType(fileType string) (Encoder, error) {
switch strings.ToLower(fileType) {
case typePng:
case typePng, typeGgs:
return PngEncoder{}, nil
case typeJpg, typeJpeg:
return JpegEncoder{}, nil