From c85bae8885708a432a0b0ceb56c7addb8ed51fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Sch=C3=B6nleber?= Date: Mon, 18 Mar 2024 20:06:56 +0100 Subject: [PATCH] chore: change `pillow-heif` to `pi-heif` for license reasons more infos see issue #2664 --- requirements/extra-pdf-image.in | 2 +- unstructured/partition/pdf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/extra-pdf-image.in b/requirements/extra-pdf-image.in index 083d4b09d7..fd3f444d33 100644 --- a/requirements/extra-pdf-image.in +++ b/requirements/extra-pdf-image.in @@ -5,7 +5,7 @@ onnx pdf2image pdfminer.six pikepdf -pillow_heif +pi_heif pypdf # Do not move to constraints.in, otherwise unstructured-inference will not be upgraded # when unstructured library is. diff --git a/unstructured/partition/pdf.py b/unstructured/partition/pdf.py index d5d9ede43e..2091c0fe13 100644 --- a/unstructured/partition/pdf.py +++ b/unstructured/partition/pdf.py @@ -35,7 +35,7 @@ from pdfminer.pdftypes import PDFObjRef from pdfminer.utils import open_filename from PIL import Image as PILImage -from pillow_heif import register_heif_opener +from pi_heif import register_heif_opener from unstructured.chunking import add_chunking_strategy from unstructured.cleaners.core import (