[sane-devel] Epson Perfection 610 Issue with 150 dpi scan
Rainer Dorsch
rdorsch at web.de
Sun Jan 3 13:01:15 UTC 2010
Hi Allan,
I was not aware that there is an epson2 backend, thanks for pointing that out.
You are right, twelve pixels rows are missing in the final result compared to
the epson2 backend prediction. I try to play with the y parameter this
afternoon. I would be surprised though if that would be the problem since the
300 dpi scan does work.
For the long options issue:
I rebuild git sane on another machine (also Debian stable aka Debian 5.0) and
the long options error is still there. Even --help has problems. Which
library is sane using to process the command line options? Does Debian stable
maybe ship with a different version than your system?
Also I installed my selfcompiled sane-backends in /opt and source
rd at blackbox:~$ cat /opt/sane-backends-091230/sane_init
SANEPREFIX=/opt/sane-backends-091230
export PATH=$SANEPREFIX/bin:$PATH
export LD_LIBRARY_PATH=$SANEPREFIX/lib:$LD_LIBRARY_PATH
rd at blackbox:~$
before I run scanimage
rd at blackbox:~$ which scanimage
/opt/sane-backends-091230/bin/scanimage
rd at blackbox:~$
Do you think I am missing something?
Here is the --help output (and -h which works well):
rd at blackbox:~$ scanimage --help
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options
(e.g. --device-name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
can be specified: %d (device name), %v (vendor),
%m (model), %t (type), %i (index number), and
%n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or
`out%d.tif' by default depending on --format
--batch-start=# page number to start naming files with
--batch-count=# how many pages to scan in batch mode
--batch-increment=# increase page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
scanimage: unrecognized option `--help'
rd at blackbox:~$ scanimage -h
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options
(e.g. --device-name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
can be specified: %d (device name), %v (vendor),
%m (model), %t (type), %i (index number), and
%n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or
`out%d.tif' by default depending on --format
--batch-start=# page number to start naming files with
--batch-count=# how many pages to scan in batch mode
--batch-increment=# increase page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
Options specific to device `epson2:libusb:001:004':
Scan Mode:
--mode Binary|Gray|Color [Binary]
Selects the scan mode (e.g., lineart, monochrome, or color).
--depth 8 [inactive]
Number of bits per sample, typical values are 1 for "line-art" and 8
for multibit scans.
--halftoning None|Halftone A (Hard Tone)|Halftone B (Soft Tone)|Halftone C
(Net Screen)|Dither A (4x4 Bayer)|Dither B (4x4 Spiral)|Dither C (4x4 Net
Screen)|Dither D (8x4 Net Screen)|Text Enhanced Technology|Download pattern
A|Download pattern B [Halftone A (Hard Tone)]
Selects the halftone.
--dropout None|Red|Green|Blue [None]
Selects the dropout.
--brightness -4..3 [0]
Selects the brightness.
--sharpness -2..2 [0]
--gamma-correction Default|User defined|High density printing|Low density
printing|High contrast printing [Default]
Selects the gamma correction value from a list of pre-defined devices
or the user defined table, which can be downloaded to the scanner
--color-correction None|Automatic|User defined|Impact-dot printers|Thermal
printers|Ink-jet printers|CRT monitors [None]
Sets the color correction table for the selected output device.
--resolution 50|60|72|75|80|90|100|120|133|144|150|160|175|180|200|216|
240|266|300|320|350|360|400|480|600|720|800|900|1200|1600|1800|2400dpi [25]
Sets the resolution of the scanned image.
--threshold 0..255 [128]
Select minimum-brightness to get a white point
Advanced:
--mirror[=(yes|no)] [no]
Mirror the image.
--auto-area-segmentation[=(yes|no)] [yes]
Enables different dithering modes in image and text areas
--red-gamma-table 0..255,... [inactive]
Gamma-correction table for the red band.
--green-gamma-table 0..255,... [inactive]
Gamma-correction table for the green band.
--blue-gamma-table 0..255,... [inactive]
Gamma-correction table for the blue band.
--wait-for-button[=(yes|no)] [no]
After sending the scan command, wait until the button on the scanner
is pressed to actually start the scan process.
Color correction:
--cct-mode Automatic|Reflective|Colour negatives|Monochrome negatives|
Colour positives [Automatic]
Color correction profile mode
--cct-profile -2..2,...
Color correction profile data
Preview:
--preview[=(yes|no)] [no]
Request a preview-quality scan.
Geometry:
-l 0..215.9mm [0]
Top-left x position of scan area.
-t 0..297.18mm [0]
Top-left y position of scan area.
-x 0..215.9mm [215.9]
Width of scan-area.
-y 0..297.18mm [297.18]
Height of scan-area.
Optional equipment:
--source Flatbed [inactive]
Selects the scan source (such as a document-feeder).
--auto-eject[=(yes|no)] [inactive]
Eject document after scanning
--film-type Positive Film|Negative Film|Positive Slide|Negative Slide
[inactive]
--focus-position Focus on glass|Focus 2.5mm above glass [inactive]
Sets the focus position to either the glass or 2.5mm above the glass
--bay 1|2|3|4|5|6 [inactive]
Select bay to scan
--eject [inactive]
Eject the sheet in the ADF
--adf-mode Simplex|Duplex [inactive]
Selects the ADF mode (simplex/duplex)
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
List of available devices:
rd at blackbox:~$
Thanks,
Rainer
Am Sonntag, 3. Januar 2010 schrieb m. allan noah:
> It appears that the image is 12 lines short of what the backend
> initially indicated. You might try tweaking the -y parameter by a
> fraction of a millimeter, and see if the problem stops. perhaps the
> epson2 backend author might have an idea...
>
> I cannot replicate your long option errors?
>
> allan
>
> On Sat, Jan 2, 2010 at 5:45 PM, Rainer Dorsch <rdorsch at web.de> wrote:
> > Allan,
> >
> > (cc'ed Karl Heinz since he is listed as epson backend author)
> >
> > I used latest git code now.
> >
> > rd at dell:~$ scanimage --version
> > scanimage (sane-backends) 1.0.21cvs; backend version 1.0.21
> > rd at dell:~$
> >
> > The first thing I noticed is that the code has issues with long-format
> > options:
> >
> > rd at dell:~$ scanimage --device-name='epson2:libusb:001:004' --mode='Color'
> > -y 297 -l 0 --resolution='300' -x 210 -t 0 --verbose > test300.pnm
> > scanimage: unrecognized option `--device-name=epson2:libusb:001:004'
> > rd at dell:~$
> >
> > and
> >
> > rd at dell:~$ scanimage -d 'epson2:libusb:001:004' --mode='Color' -y 297 -l
> > 0 --resolution='300' -x 210 -t 0 --verbose > test300.pnm
> > scanimage: unrecognized option `--verbose'
> > rd at dell:~$
> >
> > The 300 dpi test (working with the old code as well)
> >
> > rd at dell:~$ scanimage -d 'epson2:libusb:001:004' --mode='Color' -y 297 -l
> > 0 --resolution='300' -x 210 -t 0 -v > test300.pnm
> > scanimage: scanning image of size 2480x3508 pixels at 24 bits/pixel
> > scanimage: acquiring RGB frame
> > scanimage: min/max graylevel value = 107/255
> > scanimage: read 26040000 bytes in total
> > rd at dell:~$ scanimage --device-name='epson2:libusb:001:004' --mode='Color'
> > -y 297 -l 0 --resolution='300' -x 210 -t 0 --verbose > test300.pnm
> > scanimage: unrecognized option `--device-name=epson2:libusb:001:004'
> > rd at dell:~$
> >
> > With 150 dpi (broken in 1.0.19)
> >
> > rd at dell:~$ scanimage -d 'epson2:libusb:001:004' --mode='Color' -y 297 -l
> > 0 --resolution='150' -x 210 -t 0 -v > test150.pnm
> > scanimage: scanning image of size 1240x1754 pixels at 24 bits/pixel
> > scanimage: acquiring RGB frame
> > scanimage: min/max graylevel value = 140/255
> > scanimage: read 6510000 bytes in total
> > rd at dell:~$
> >
> > looks good so far, but
> >
> > rd at dell:~$ convert test150.pnm test150.png
> > convert: unable to read image data `test150.pnm'.
> > convert: missing an image filename `test150.png'.
> > rd at dell:~$ pnmtopng test150.pnm > test150.png
> > pnmtopng: EOF / read error reading a row of pixels
> > rd at dell:~$
> >
> > demonstrates that the current git code has the same issue as 1.0.19.
> >
> > For reference I provide test150.pnm at
> >
> > http://bokomoko.de/~rd/test150.pnm
> >
> > kuickshow shows that essentially all scan data is in the file, I would
> > hope it is only a small issue which needs to be fixed, any ideas where to
> > look at?
> >
> > Thanks,
> > Rainer
> >
> > Am Mittwoch, 30. Dezember 2009 schrieben Sie:
> >> Could you try a more recent version of sane-backends, or perhaps a git
> >> snapshot?
> >>
> >> allan
> >>
> >> On Tue, Dec 29, 2009 at 5:34 AM, Rainer Dorsch <rdorsch at web.de> wrote:
> >> > Hello,
> >> >
> >> > when scanning with the Epson Perfection 610 with 150dpi color mode,
> >> > sane creates corrupted files
> >> >
> >> > rd at dell:~$ scanimage -L
> >> > device `epson2:libusb:001:003' is a Epson Perfection610 flatbed
> >> > scanner device `epson:libusb:001:003' is a Epson Perfection610 flatbed
> >> > scanner device `epkowa:libusb:001:003' is a Epson Perfection 610
> >> > flatbed scanner Crd at dell:~$scanimage
> >> > --device-name='epson2:libusb:001:003' --mode='Color' -y 297 -l 0
> >> > --resolution='150' -x 210 --wait-for-button='yes' -t 0 --verbose >
> >> > test.pnm
> >> > scanimage: scanning image of size 1240x1748 pixels at 24 bits/pixel
> >> > scanimage: acquiring RGB frame
> >> > scanimage: min/max graylevel value = 34/253
> >> > scanimage: read 6487680 bytes in total
> >> > rd at dell:~$ pnmtopng test.pnm > test.png
> >> > pnmtopng: EOF / read error reading a row of pixels
> >> > rd at dell:~$
> >> >
> >> > Also imagemagick has problems with this file
> >> >
> >> > rd at dell:~$ convert test.pnm test.png
> >> > convert: unable to read image data `test.pnm'.
> >> > convert: missing an image filename `test.png'.
> >> > rd at dell:~$ ls -l test.pnm
> >> > -rw-r--r-- 1 rd rd 6487717 29. Dez 10:40 test.pnm
> >> > rd at dell:~$
> >> >
> >> > For reference I put the corupted file to
> >> >
> >> > http://bokomoko.de/~rd/test.pnm
> >> >
> >> > Since kuickshow displays test.pnm well (also with more meaningfull
> >> > examples), I think sane scans the page ok, but has some issue when
> >> > writting the pnm file.
> >> >
> >> > When scanning with 300 dpi in color mode or 150 dpi in binary mode,
> >> > there is no issue:
> >> >
> >> > rd at dell:~$ scanimage --device-name='epson2:libusb:001:003'
> >> > --mode='Color' -y 297 -l 0 --resolution='300' -x 210
> >> > --wait-for-button='yes' -t 0 --verbose > test300.pnm
> >> > scanimage: scanning image of size 2480x3496 pixels at 24 bits/pixel
> >> > scanimage: acquiring RGB frame
> >> > scanimage: min/max graylevel value = 19/255
> >> > scanimage: read 26010240 bytes in total
> >> > rd at dell:~$ pnmtopng test300.pnm > test300.png
> >> > rd at dell:~$
> >> >
> >> > Again for reference: http://bokomoko.de/~rd/test300.pnm
> >> >
> >> > I am using the sane-backends version 1.0.19 contained in Debian 5.0
> >> >
> >> > Thanks,
> >> > Rainer
> >> >
> >> > --
> >> > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> >> > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> >> > Unsubscribe: Send mail with subject "unsubscribe your_password"
> >> > to sane-devel-request at lists.alioth.debian.org
> >
> > --
> > Rainer Dorsch
> > Lärchenstr. 6
> > D-72135 Dettenhausen
> > 07157-734133
> > email: rdorsch at web.de
> > jabber: rdorsch at jabber.org
> > GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
> > Full GPG key: http://pgp.mit.edu/
--
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch at web.de
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100103/7c6ab711/attachment.pgp>
More information about the sane-devel
mailing list