mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Cleaned up the thumbnails by switching to .png
This commit is contained in:
parent
52f15b4de1
commit
8a9ea4664c
3 changed files with 9 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue