miscs (Interro02) : horizontal cutting resolution

This commit is contained in:
sebastien committed 2026-09-14 22:20:46 +02:00
1 parent 5080274e8f
commit 0a86403ca6
28 files changed
+1447 -59

No files matched your search

+3 -1
View File
@@ -65,7 +65,9 @@ def stitch_images(image_list: list[Image.Image]) -> Image.Image | None:
@lru_cache(maxsize=3)
def _get_pdf_pages_cached(pdf_path: Path) -> list[Image.Image]:
return convert_from_path(pdf_path)
# Label coordinates use the full, displayed MediaBox, including on PDFs
# previously cropped by crop-margins. Keep this in sync with split-answers.
return convert_from_path(pdf_path, use_cropbox=False)
def get_pdf_pages(pdf_path: Path) -> list[Image.Image]: