From 879fca6f9fcfcf1d1fb7deb909a57a4c224cd487 Mon Sep 17 00:00:00 2001 From: deeplow Date: Mon, 5 Feb 2024 18:36:54 +0000 Subject: [PATCH] Remove uneeded TESSDATA_PREFIX setting in container The container image does not need the TESSDATA_PREFIX env variable since its PyMuPDF version is new enough to support `tessdata` as an argument when calling the PyMuPDF tesseract method. --- dangerzone/isolation_provider/container.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dangerzone/isolation_provider/container.py b/dangerzone/isolation_provider/container.py index 98f47ffe6..269359f16 100644 --- a/dangerzone/isolation_provider/container.py +++ b/dangerzone/isolation_provider/container.py @@ -217,8 +217,6 @@ def pixels_to_pdf( "-v", f"{tempdir}:/safezone:Z", "-e", - "TESSDATA_PREFIX=/usr/share/tessdata", - "-e", f"OCR={0 if ocr_lang is None else 1}", "-e", f"OCR_LANGUAGE={ocr_lang}",