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/ > -- "The truth is an offense, but not a sin"