[sane-devel] unpaper default parameter - empty output bug

2005-03-11 Thread Bertrik Sikken
Peter Fales wrote: > Thanks for all your help. I think we're getting closer. I'm using the > Makefile rules supplied with unpaper: > > unpaper: > cc unpaper.c -o unpaper -lm > > so I was already using no optimization. I was using gcc-3.2.2 which > is the default compile

[sane-devel] unpaper default parameter - empty output bug

2005-03-11 Thread Jens Gulden
Peter Fales schrieb: > Now that's wierd. I was using a privately built copy of unpaper, but I > just unpacked the tarball and get the same results with the prebuilt binary! I just reproduced the problem on one remote Intel machine I have access to. Try to compile without any optimization (no -O

[sane-devel] unpaper endianess

2005-03-11 Thread Julien BLACHE
Jens Gulden wrote: Hi, >> Unpaper seems to have endianness issues; > > Are you using 1-bit-per-pixel input or output files (i.e. .pbm, not > .pgm)? The only place where I would ad-hoc suspect an endianess issue I think I used pgm both times, I'll retry to confirm that. > is when the single bit

[sane-devel] unpaper default parameter - empty output bug

2005-03-11 Thread Frank Zago
Hi Jens, Jens Gulden wrote: > Peter Fales schrieb: > >> Now that's wierd. I was using a privately built copy of unpaper, but I >> just unpacked the tarball and get the same results with the prebuilt >> binary! > > > I just reproduced the problem on one remote Intel machine I have access to.

[sane-devel] unpaper default parameter - empty output bug

2005-03-11 Thread Monty
On Fri, Mar 11, 2005 at 11:25:42PM +0100, Bertrik Sikken wrote: > Try compiling it with compiler option --pedantic > That results in lots of warnings, of which some look very suspicious. > > I' m not sure how big the stack is by default, but unpaper appears > to put quite a lot of local variable

[sane-devel] unpaper default parameters

2005-03-11 Thread Jens Gulden
Can you attach a sample-image? Peter Fales schrieb: > The images I'm working with are faxes, so they are typically 1680x2200 > pbm (1 bit per pixel) image files. > > I wasn't specifying --layout, but adding "--layout single" didn't seem to > help. Since my pixels are all black or white, I don't

[sane-devel] unpaper default parameters

2005-03-11 Thread Jens Gulden
Hello, Peter Fales wrote: > I get white pages as output on my i686 machine unless I use > --no-border-scan. I haven't analyzed why - and I'm not sure whether > running unpaper with all default arguments is even expected to work. You're right, the default parameters are NOT expected to always w

[sane-devel] unpaper endianess

2005-03-11 Thread Jens Gulden
Julien BLACHE wrote: > Unpaper seems to have endianness issues; Are you using 1-bit-per-pixel input or output files (i.e. .pbm, not .pgm)? The only place where I would ad-hoc suspect an endianess issue is when the single bits are accessed during conversion from/to 1-bit images... Is it exactly t

[sane-devel] unpaper default parameter - empty output bug

2005-03-11 Thread Peter Fales
Thanks for all your help. I think we're getting closer. I'm using the Makefile rules supplied with unpaper: unpaper: cc unpaper.c -o unpaper -lm so I was already using no optimization. I was using gcc-3.2.2 which is the default compiler on my system. I tried building w

[sane-devel] UMAX Astra aborts in high resolution scans

2005-03-11 Thread Michael Stutz
I have a UMAX Astra 1220S scanner connected to a BusLogic SCSI card that I've used with SANE for years, but recently (possibly after a software upgrade) it has been giving me headache & trouble, and I have just about lost my wits. I am suddenly unable to scan images at higher resolutions. Without

[sane-devel] Accessing scanner through libusb fails with "invalid argument"

2005-03-11 Thread Sebastian Reichelt
Hello! I got a different firmware (from a CD), and now it works. Thanks a lot! -- Sebastian Reichelt

[sane-devel] Accessing scanner through libusb fails with "invalid argument"

2005-03-11 Thread gerard klaver
On Thu, 2005-03-10 at 23:56 +0100, Sebastian Reichelt wrote: > Hello! > > I have a Tevion MD9458 scanner which I would like to get to work with > Linux. Apparently it is supported by SANE, and sane-find-scanner detects > it correctly. However, when I try to access it with xsane or scanimage, > I g

[sane-devel] unpaper default parameters

2005-03-11 Thread Peter Fales
The images I'm working with are faxes, so they are typically 1680x2200 pbm (1 bit per pixel) image files. I wasn't specifying --layout, but adding "--layout single" didn't seem to help. Since my pixels are all black or white, I don't think changing the thresholds would be expcted to make much di

[sane-devel] Accessing scanner through libusb fails with "invalid argument"

2005-03-11 Thread Sebastian Reichelt
Hello! > This happened to me before I learned that my kernel was loading > hpusbscsi. No, sorry. hpusbscsi is not even compiled, neither as a module nor into the kernel. No modules are loaded except some parport stuff, probably because of scanner detection. Something I forgot to mention: I got