Bug#697968: gscan2pdf: Provide useful automatic deskewing option. ('unpaper' fails.)

2013-01-17 Thread Jeffrey Ratcliffe
 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 FF' for white), but maybe
 there's some easy kludge around that.

There's nothing stopping you using this with gscan2pdf already -

You can set it up as a user-defined tool in Edit/Preferences, and it
will then appear in the Tools menu.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#697968: gscan2pdf: Provide useful automatic deskewing option. ('unpaper' fails.)

2013-01-15 Thread Jeffrey Ratcliffe
Wouldn't it be better to report bugs against unpaper with specific
cases where deskew didn't work?

A quick search didn't come up with any other simple deskewing tools:

gimp has a plug-in: http://registry.gimp.org/node/2958

leptonica has a deskew module, but I don't think any executables:
http://www.leptonica.com/

Plus a howto: http://www.codeproject.com/Articles/13615/How-to-deskew-an-image


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#697968: gscan2pdf: Provide useful automatic deskewing option. ('unpaper' fails.)

2013-01-15 Thread A. Costa
On Tue, 15 Jan 2013 22:32:21 +0100
Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com 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 FF' for white), but maybe
there's some easy kludge around that.

HTH...


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#697968: gscan2pdf: Provide useful automatic deskewing option. ('unpaper' fails.)

2013-01-12 Thread A. Costa
Package: gscan2pdf
Version: 1.0.4-5
Severity: wishlist

Dear Maintainer,

Some duplex sheet feed scanners produce skewed output, so the resulting
PDF file could use deskewing.  'ToolsClean upDeskew' implies 'unpaper' 
can automatically deskew, but it's never worked for me; 
other users report similar disappointments, e.g.:

Unpaper (http://unpaper.berlios.de/) is a CLI tool for the job, 
which supports double pages, ...  But in my experience it didn't work at 
all...

http://linux-tipps.blogspot.com/2011/09/cropping-scanned-pages-eg-double-pages.html

What's needed is auto-deskewing that works.

HTH...


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages gscan2pdf depends on:
ii  imagemagick  8:6.7.7.10-5
ii  libconfig-general-perl   2.50-1
ii  libgoo-canvas-perl   0.06-1+b2
ii  libgtk2-ex-simple-list-perl  0.50-2
ii  libgtk2-imageview-perl   0.05-1+b2
ii  libhtml-parser-perl  3.69-2
ii  liblocale-gettext-perl   1.05-7+b1
ii  liblog-log4perl-perl 1.29-1
ii  libpdf-api2-perl 2.019-1
ii  libproc-processtable-perl0.45-3+b1
ii  libreadonly-perl 1.03-4
ii  librsvg2-common  2.36.1-1
ii  libsane-perl 0.05-2
ii  libset-intspan-perl  1.16-1
ii  libtiff-tools4.0.2-1
ii  perlmagick   8:6.7.7.10-2
ii  sane-utils   1.0.22-7.4

Versions of packages gscan2pdf recommends:
ii  djvulibre-bin  3.5.25.3-1
ii  gocr   0.49-1
ii  libgtk2-ex-podviewer-perl  0.18-1
ii  sane   1.0.14-9
ii  tesseract-ocr  3.02.01-4.1
ii  unpaper0.4.2-1
ii  xdg-utils  1.1.0~rc1+git20111210-6

gscan2pdf suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org