On Tue, 15 Jan 2013 22:32:21 +0100
Jeffrey Ratcliffe <[email protected]> wrote:
> Wouldn't it be better to report bugs against unpaper with specific
> cases where deskew didn't work?
It sure would, but...
Users like me don't know where this bug lives; some of us use 'unpaper'
only when 'gscan2pdf' calls it. 'man unpaper' is too complex for lazy
users who just want a good GUI front-end to do the work. Such users
worry if the trouble could be mutual:
1) 'gscan2pdf' might be calling 'unpaper' incorrectly.
2) 'unpaper' might itself be failing to deskew.
3) Both #1 & #2.
> A quick search didn't come up with any other simple deskewing tools:
> ... gimp ... plug-in ... leptonica ... deskew module ... a howto ...
I tried a search, and found Marek Mauder's excellent "deskew":
http://galfar.vevb.net/deskew/
The ZIP archive there contains sources & compiled executables for
Win32, Win64, Linux 64bit, & Mac OSX 32bit. None of those run on my
32-bit Debian system, but the Win32 EXE worked under 'Wine'. The
syntax seems suitable for 'gscan2pdf':
Usage:
deskew [-a angle] [-t a|treshold] [-b color] [-r rect] [-o output] [-s info]
input
-a angle: Maximal skew angle in degrees (default: 10)
-t a|treshold: Auto threshold or value in 0..255 (default: a)
-b color: Background color in hex format RRGGBB (default: trns. black)
-r rect: Skew detection only in content rectangle (pixels):
left,top,right,bottom (default: whole page)
-o output: Output image file (default: out.png)
-s info: Info dump (any combination of):
s - skew detection stats, p - program parameters
input: Input image file
Supported file formats
Input: PBM, PGM, PPM, PAM, PFM, TGA, DDS, GIF, JPG, PNG, JNG, BMP, TIF, PSD
Output: PGM, PPM, PAM, PFM, TGA, DDS, GIF, JPG, PNG, JNG, BMP, TIF, PSD
I tried it on a skewed 20 page PDF, (first I ran 'pdftoppm'). The
output was perfectly deskewed. One kvetch, its default background
(fill-in) color is black, (I used '-b FFFFFF' for white), but maybe
there's some easy kludge around that.
HTH...
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]