add legacy extract warning (#1433)

This commit is contained in:
Alex Xu authored and GitHub committed 2026-09-03 21:52:27 -07:00
1 parent 38fa13610f
commit 3be76ec89f
2 files changed
+9

No files matched your search

+2
View File
@@ -112,6 +112,8 @@ def splitImage(work):
imgProcess = imgEdges.point(lambda p: 255 if p > 6 else 0).convert('1', dither=Dither.NONE)
widthImg, heightImg = imgOrg.size
if widthImg < 300:
raise UserWarning('PDF render failed < 300 px. Try legacy extract option instead.')
if heightImg > opt.height:
if opt.debug:
drawImg = Image.open(filePath).convert(mode='RGBA')