mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Removes last vestiges of PNG from the tests, code, docs and samples
This commit is contained in:
@@ -189,7 +189,7 @@ class Command(BaseCommand):
|
||||
original_target = os.path.join(self.target, original_name)
|
||||
document_dict[EXPORTER_FILE_NAME] = original_name
|
||||
|
||||
thumbnail_name = base_name + "-thumbnail.png"
|
||||
thumbnail_name = base_name + "-thumbnail.webp"
|
||||
thumbnail_target = os.path.join(self.target, thumbnail_name)
|
||||
document_dict[EXPORTER_THUMBNAIL_NAME] = thumbnail_name
|
||||
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import logging
|
||||
import multiprocessing
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
import tqdm
|
||||
from django import db
|
||||
@@ -23,12 +22,6 @@ def _process_document(doc_in):
|
||||
|
||||
try:
|
||||
|
||||
existing_thumbnail = Path(document.thumbnail_path).resolve()
|
||||
|
||||
# Remove an existing PNG format thumbnail, if it existed
|
||||
if existing_thumbnail.exists() and existing_thumbnail.suffix == ".png":
|
||||
existing_thumbnail.unlink()
|
||||
|
||||
thumb = parser.get_thumbnail(
|
||||
document.source_path,
|
||||
document.mime_type,
|
||||
|
Reference in New Issue
Block a user