[Image-SIG] sane->PIL->image problems
Paul Barrett
Barrett@stsci.edu
Thu, 22 Mar 2001 08:53:13 -0500 (EST)
George P Burdell writes:
With a name like George P. Burdell, do you really expect someone to
reply to this message? :-)
> 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
>
--
Dr. Paul Barrett Space Telescope Science Institute
Phone: 410-338-4475 ESS/Science Software Group
FAX: 410-338-4767 Baltimore, MD 21218