a couple fixes and more supported image files

This commit is contained in:
jonaswinkler
2020-12-02 17:39:49 +01:00
parent 1bb5dbd694
commit 1d073d2cfd
8 changed files with 41 additions and 4 deletions

View File

@@ -65,7 +65,10 @@ class RasterisedDocumentParser(DocumentParser):
def is_image(self, mime_type):
return mime_type in [
"image/png",
"image/jpeg"
"image/jpeg",
"image/tiff",
"image/bmp",
"image/gif",
]
def get_dpi(self, image):