[Bug 401096] Re: Weird "buffering" of scanned pages with scanimage frontend
Matt Zimmerman
mdz at ubuntu.com
Wed Jul 29 09:18:07 UTC 2009
On Wed, Jul 29, 2009 at 06:30:51AM -0000, Jeffrey Ratcliffe wrote:
> It seems to me that gscan2pdf is trying to read the image before it has
> been fully written.
>
> scanimage was modified in 1.0.20 to buffer the image, and to write it
> only when complete.
>
> Please try the attached patch, which flushes the filesystem buffers
> immediately before importing the image.
I'll try this the next time I'm at the scanner.
> If this doesn't work, the only other idea I have is to hack the import
> code to monitor the image as it is written and only import it when the
> file size matches the PNM header. But this will be quite a bit of work.
How about having scanimage write the image to a pipe, so we can detect EOF,
rather than to a temporary file?
--
- mdz
--
Weird "buffering" of scanned pages with scanimage frontend
https://bugs.launchpad.net/bugs/401096
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list