[sane-devel] Epson Perfection 510 Issue with 150 dpi scan

Rainer Dorsch rdorsch at web.de
Tue Dec 29 10:34:05 UTC 2009


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



More information about the sane-devel mailing list