with a couple week old cvs, when i run your command i get this: > scanimage -d test -T scanimage: scanning image of size 157x196 pixels at 8 bits/pixel scanimage: acquiring gray frame, 8 bits/sample scanimage: reading one scanline, 157 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS scanimage: stepped read, 8 bytes... PASS scanimage: stepped read, 16 bytes... PASS scanimage: stepped read, 32 bytes... PASS scanimage: stepped read, 64 bytes... PASS scanimage: stepped read, 128 bytes... PASS scanimage: stepped read, 256 bytes... PASS scanimage: stepped read, 255 bytes... PASS scanimage: stepped read, 127 bytes... PASS scanimage: stepped read, 63 bytes... PASS scanimage: stepped read, 31 bytes... PASS scanimage: stepped read, 15 bytes... PASS scanimage: stepped read, 7 bytes... PASS scanimage: stepped read, 3 bytes... PASS
but if i add -x 1 -y 1, i get this: >scanimage -d test -x 1 -y 1 -T scanimage: rounded value of br-x from 0.999985 to 1 scanimage: rounded value of br-y from 0.999985 to 1 scanimage: scanning image of size 1x1 pixels at 8 bits/pixel scanimage: acquiring gray frame, 8 bits/sample scanimage: reading one scanline, 1 bytes... PASS scanimage: reading one byte... FAIL Error: End of file reached If the image is too small (only has one scanline, etc), then scanimage -T runs out of data. It's just poorly programmed, because it is rarely used. The bigger question is why does your copy of the test backend have such a small scan area? what does 'scanimage -d test --help' show? allan On Wed, Feb 18, 2009 at 10:56 PM, Chris Bagwell <chris at cnpbagwell.com> wrote: > Hi all, > > I was converting the testsuite directory to automake but I noticed in > CVS version of sane that the following basic command doesn't work. So > not much for me to test right now. > > frontend/scanimage -d test -T > lt-scanimage: scanning image of size 1x1 pixels at 8 bits/pixel > lt-scanimage: acquiring gray frame, 8 bits/sample > lt-scanimage: reading one scanline, 1 bytes... PASS > lt-scanimage: reading one byte... FAIL Error: End of file reached > > Running 1.0.19 from my /usr/bin does work for same command line. Anyone > know when it broke? > > Chris > > > > -- > 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 > -- "The truth is an offense, but not a sin"
