mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 01:31:09 -06:00
Removes last vestiges of PNG from the tests, code, docs and samples
This commit is contained in:
@@ -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