mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Removes last vestiges of PNG from the tests, code, docs and samples
This commit is contained in:
parent
cc4cea1a41
commit
1df517afd3
19 changed files with 14 additions and 60 deletions
|
|
@ -362,11 +362,7 @@ class DocumentViewSet(
|
|||
handle = doc.thumbnail_file
|
||||
# TODO: Send ETag information and use that to send new thumbnails
|
||||
# if available
|
||||
thumbnail_path = doc.thumbnail_path
|
||||
if os.path.splitext(thumbnail_path)[1] == ".webp":
|
||||
content_type = "image/webp"
|
||||
else:
|
||||
content_type = "image/png"
|
||||
content_type = "image/webp"
|
||||
|
||||
return HttpResponse(handle, content_type=content_type)
|
||||
except (FileNotFoundError, Document.DoesNotExist):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue