[Image-SIG] sane->PIL->image problems

George P Burdell gpb_gt@yahoo.com
Wed, 21 Mar 2001 15:10:28 -0800 (PST)


I have an HP SCANJET and I can't seem to get scanning
in Python to work.

Here is code that I am using:

>>> import sane
>>> s = sane.open('hp:/dev/scanner')
>>> s.start()
>>> im = s.snap()
>>> im.save('pyscan.tiff')
>>>

This creates a file that is 8M.  When I open the file
up for viewing, the file appears to repeat the same
image 8 times and bottom of the document is B&W.  Any
ideas?  I can use xsane which produces good images
from
scans. 

I have Python1.5.2 (which I must use), PIL1.1.1 and
Sane-1.03


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/