From 2b10df7b7449d0e08df457add75f4603f1f3dc6b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 3 Aug 2016 00:54:37 -0700 Subject: [PATCH] leptonica: note about when it may be safe to drop <1.72 workaround --- ocrmypdf/leptonica.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ocrmypdf/leptonica.py b/ocrmypdf/leptonica.py index f092e87a..959a52d3 100644 --- a/ocrmypdf/leptonica.py +++ b/ocrmypdf/leptonica.py @@ -362,7 +362,8 @@ class Pix: if get_leptonica_version() < 'leptonica-1.72': # Older versions of Leptonica (pre-1.72) have a buggy # implementation of pixCorrelationBinary that overflows on larger - # images. + # images. Ubuntu trusty has 1.70. Ubuntu PPA + # ppa:rebuntu16/avidemux+unofficial has "leptonlib" 1.73. pix1_count = ffi.new('l_int32 *') pix2_count = ffi.new('l_int32 *') pixn_count = ffi.new('l_int32 *')