add legacy extract warning (#1433)
This commit is contained in:
1 parent
38fa13610f
commit
3be76ec89f
2 files changed
+9
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user