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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue