diff --git a/controllers.go b/controllers.go index 7efd917a..29c845ec 100644 --- a/controllers.go +++ b/controllers.go @@ -92,6 +92,11 @@ func imageHandler(w http.ResponseWriter, r *http.Request, buf []byte, operation } } + // Use magick to process bmp image + if mimeType == "image/bmp" { + mimeType = "image/magick" + } + // Infer text/plain responses as potential SVG image if strings.Contains(mimeType, "text/plain") && len(buf) > 8 { if bimg.IsSVGImage(buf) {