Leptonica deskew can handle .pnm input, unlike imagemagick

This commit is contained in:
Jim Barlow
2014-11-13 23:20:25 -08:00
parent 4dc0370c57
commit 925290342d
+1 -1
View File
@@ -279,7 +279,7 @@ def deskew_imagemagick(input_file, output_file):
@active_if(options.preprocess_deskew != 0
and options.deskew_provider == 'leptonica')
@transform(convert_to_tiff, suffix(".tif"), ".deskewed.tif")
@transform(unpack_with_pdftoppm, suffix(".pnm"), ".deskewed.tif")
def deskew_leptonica(input_file, output_file):
from .leptonica import deskew
with logger_mutex: