mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-03 21:39:22 +00:00
Cleaned up the thumbnails by switching to .png
This commit is contained in:
1 parent
52f15b4de1
commit
8a9ea4664c
3 files changed
+9
-8
No files matched your search
@@ -29,7 +29,7 @@ class IndexView(TemplateView):
|
||||
return TemplateView.get_context_data(self, **kwargs)
|
||||
|
||||
|
||||
class FetchView(LoginRequiredMixin, DetailView):
|
||||
class FetchView(DetailView):
|
||||
|
||||
model = Document
|
||||
|
||||
@@ -48,8 +48,8 @@ class FetchView(LoginRequiredMixin, DetailView):
|
||||
|
||||
if self.kwargs["kind"] == "thumb":
|
||||
return HttpResponse(
|
||||
GnuPG.decrypted(self.object.thumb_file),
|
||||
content_type=content_types[Document.TYPE_JPG]
|
||||
GnuPG.decrypted(self.object.thumbnail_file),
|
||||
content_type=content_types[Document.TYPE_PNG]
|
||||
)
|
||||
|
||||
response = HttpResponse(
|
||||
|
||||
Reference in new issue
Block a user