[sane-devel] parsing help output of scanimage there has got to be a better way?

2017-09-18 Thread Jeff Sadowski
I am trying to design a web interface like phpsane (developer no longer working on it) It looks like he had issue also with parsing the help output as phpsane didn't work for me. I had created something like phpsane myself a while ago and was using it until I upgraded and I lost my web interface.

Re: [sane-devel] parsing help output of scanimage there has got to be a better way?

2017-09-18 Thread Jeff Sadowski
On Mon, Sep 18, 2017 at 2:15 PM, Jeff <jf...@posteo.net> wrote: > On 18/09/17 21:28, Jeff Sadowski wrote: > > The extremely hard part is coming up with a way to parse the stdout of > > "scanimage -h" > > Is there a good way to to this with regular expr

Re: [sane-devel] parsing help output of scanimage there has got to be a better way?

2017-09-18 Thread Jeff Sadowski
On Mon, Sep 18, 2017 at 2:56 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > > > On Mon, Sep 18, 2017 at 2:15 PM, Jeff <jf...@posteo.net> wrote: > >> On 18/09/17 21:28, Jeff Sadowski wrote: >> > The extremely hard part is coming up with a way to

[sane-devel] "scanimage -h -d ''" without searching for scanners

2017-09-25 Thread Jeff Sadowski
I'm running "scanimage -h -d ''" After it comes back with the scanner specific options it checks for available scanners. Is there a way to just stop after scanner specific options? -- sane-devel mailing list: sane-devel@lists.alioth.debian.org

Re: [sane-devel] Best way to stop scanimage?

2017-09-28 Thread Jeff Sadowski
. On Thu, Sep 28, 2017 at 8:36 AM, m. allan noah <kitno...@gmail.com> wrote: > Just let it complete? > > allan > > On Thu, Sep 28, 2017 at 10:30 AM, Jeff Sadowski <jeff.sadow...@gmail.com> > wrote: > > Is there a good way to stop scanimage? Other signals to

Re: [sane-devel] Best way to stop scanimage?

2017-09-28 Thread Jeff Sadowski
Ooooh Ctrl-C sends the INT(-2) signal that is the signal I think I want. On Thu, Sep 28, 2017 at 8:42 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > If I watch the image it is downloading and see it isn't quite right and I > don't want to wait for the scanner to reach the e

Re: [sane-devel] Best way to stop scanimage?

2017-09-30 Thread Jeff Sadowski
will cache options and scanner returns to speed things up. I was even successful at allowing an array input in html :-) On Sat, Sep 30, 2017 at 3:16 PM, Jeff <jf...@posteo.net> wrote: > On 29/09/17 15:52, Jeff Sadowski wrote: > > I am developing a php interface I'm calling it ph

Re: [sane-devel] Best way to stop scanimage?

2017-09-30 Thread Jeff Sadowski
I also run scanimage under script otherwise I don't get the continuous output. On Sat, Sep 30, 2017 at 6:09 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > Thank you for the input. > > I'm redoing phpsane. I'll look at the others but I came up with a method > that seem

Re: [sane-devel] Supported languages?

2017-09-30 Thread Jeff Sadowski
it for me. On Sat, Sep 30, 2017 at 2:33 PM, Jeff <jf...@posteo.net> wrote: > On 29/09/17 21:56, Jeff Sadowski wrote: > > I only speak english however is there a way to make scanimage print out > > help in another language? or is scanimage english only? > > Assuming that th

Re: [sane-devel] Supported languages?

2017-10-01 Thread Jeff Sadowski
I'm not sure I grasp it. So if I install ubuntu on a vm for each language I want to support would I be able to copy the output for each language? Or would it be better to do a google translate for the languages? I can add tables for translating the common options if need be. On Sun, Oct 1, 2017

Re: [sane-devel] Best way to stop scanimage?

2017-09-29 Thread Jeff Sadowski
have a better working one in a few weeks. On Fri, Sep 29, 2017 at 3:51 AM, Olaf Meeuwissen <paddy-h...@member.fsf.org> wrote: > Hi Jeff, > > Jeff Sadowski writes: > > >>> On Thu, Sep 28, 2017 at 10:30 AM, Jeff Sadowski < > jeff.sadow...@gmail.com> > >

[sane-devel] simulate a scan with test device?

2017-09-29 Thread Jeff Sadowski
Most of the systems I am using don't have actual scanners attached. I'd like to simulate a flatbed scanner by copying an image chunk by chunk with a delay and even simulate selecting an area and resolution by using a high def image to copy from and get a lower res depending on the settings I give.

[sane-devel] Supported languages?

2017-09-29 Thread Jeff Sadowski
I only speak english however is there a way to make scanimage print out help in another language? or is scanimage english only? I tried export LANG=de_DE.UTF-8 export LANGUAGE=de_DE scanimage -h and export LANG=de_DE.utf8 export LANGUAGE=de_DE scanimage -h and made sure I had de_DE.UTF-8 to

[sane-devel] Best way to stop scanimage?

2017-09-28 Thread Jeff Sadowski
Is there a good way to stop scanimage? Other signals to send to it that it may prefer? It seems sometimes if I stop it I need to reset the scanner. -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send

[sane-devel] saned not running without -d

2017-11-20 Thread Jeff Sadowski
root@raspberrypi:~:x86$ saned -d256 [saned] main: starting debug mode (level 256) [saned] read_config: searching for config file [saned] read_config: done reading config [saned] saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up [saned] do_bindings: trying to get port for service

Re: [sane-devel] xsane preview scan?

2018-01-04 Thread Jeff Sadowski
correction scanimage --batch=preview.jpg --batch-count=1 --format=jpeg -d -x -y -l 0 -t 0 On Thu, Jan 4, 2018 at 11:46 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > Because I will use the default resolution I will leave out that > argument and I though about if the defau

Re: [sane-devel] xsane preview scan?

2018-01-04 Thread Jeff Sadowski
, 2018 at 11:36 AM, Jeff <jf...@posteo.net> wrote: > On 04/01/18 19:14, Jeff Sadowski wrote: >> I'm thinking my best bet is to use the default resolution with max x and max >> y. > > Exactly. A resolution of 1 is too small. This works fine for me: > > scanimage --

Re: [sane-devel] Weird behavior in exagear.

2018-01-05 Thread Jeff Sadowski
) from sane-backends 1.0.24 starting up [saned] do_bindings: [0] bind failed: Address already in use ^C On Fri, Jan 5, 2018 at 2:44 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > I started my scanner testing with my project. :-) My project phpsaneng > seems to be working. > &

Re: [sane-devel] Weird behavior in exagear.

2018-01-06 Thread Jeff Sadowski
So, renaming my image from the directly connected method to pmn allows me to view it. Now to find out what I need to get a jpeg, tiff, png images. On Sat, Jan 6, 2018 at 8:54 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > interesting I searched for "scanimage # sane data fol

Re: [sane-devel] Weird behavior in exagear.

2018-01-06 Thread Jeff Sadowski
I'm using debian in exagear do they compile scanimage without support for jpeg and png? It is looking like I have to try and put some other virtual os on my raspberry pi 3 system. On Sat, Jan 6, 2018 at 9:17 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > So, renaming my i

Re: [sane-devel] Weird behavior in exagear.

2018-01-06 Thread Jeff Sadowski
scanimage to output a jpeg? On Fri, Jan 5, 2018 at 2:53 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > Server side with saned > > root@raspberrypi:~:x86$ while [ 1 ];do saned -d 128;done > [saned] main: starting debug mode (level 2) > [saned] saned (AF-indep+IPv6) from s

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
wxrwx root/root 0 2009-12-01 18:38 ./usr/lib/sane/libsane-brother2.so -> /usr/lib/sane/libsane-brother2.so.1 so I will recompile to with libdir=/usr/lib and see if that works. On Thu, Jan 11, 2018 at 5:28 AM, Olaf Meeuwissen <paddy-h...@member.fsf.org> wrote: > Hi, > > Je

[sane-devel] xsane preview scan?

2018-01-04 Thread Jeff Sadowski
I have been working on a php implementation of a scanner interface. I am making some progress. I have my code at https://bitbucket.org/jeffsadowski/phpsaneng (Not anywhere ready for mainstream as for now it just lists the options selected when I hit scan.) I'm at the point where I want to start

Re: [sane-devel] xsane preview scan?

2018-01-04 Thread Jeff Sadowski
I'm thinking my best bet is to use the default resolution with max x and max y. On Thu, Jan 4, 2018 at 10:51 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > I have been working on a php implementation of a scanner interface. > > I am making some progress. I have my

Re: [sane-devel] Weird behavior in exagear.

2018-01-10 Thread Jeff Sadowski
x86 architecture. running on arm On Sun, Jan 7, 2018 at 8:19 PM, Olaf Meeuwissen <paddy-h...@member.fsf.org> wrote: > Hi Jeff, > > Jeff writes: > >> On 07/01/18 05:53, Jeff Sadowski wrote: >>> I'm using debian in exagear do they compile scanimage without support &g

Re: [sane-devel] Weird behavior in exagear.

2018-01-10 Thread Jeff Sadowski
ere a flag I need to use other drivers than the ones it compiles as the brother printer driver is a binary package? On Wed, Jan 10, 2018 at 10:58 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > root@raspberrypi:~:x86$ scanimage --version > scanimage (sane-backends) 1.0.24; backend

Re: [sane-devel] Weird behavior in exagear.

2018-01-10 Thread Jeff Sadowski
It seems to be wanting .la files when I have .so files so is there a flag to support shared object files over .la? On Wed, Jan 10, 2018 at 1:36 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > I pulled the current git of sane-backend from > https://anonscm.debian.org/g

[sane-devel] Weird behavior in exagear.

2018-01-05 Thread Jeff Sadowski
I started my scanner testing with my project. :-) My project phpsaneng seems to be working. The way I want to use my scanner, not so much. Maybe one of you would know what is happening here. I currently have 2 ways to connect to my scanner. Via saned or using scanimage directly. I was surprised

Re: [sane-devel] Weird behavior in exagear.

2018-01-12 Thread Jeff Sadowski
d the name of the file from my rant.txt looking for '--batch= and the matching quote and replace all %d with the last page number and then I have my image retrieve send that file. :-) On Fri, Jan 12, 2018 at 4:07 AM, Olaf Meeuwissen <paddy-h...@member.fsf.org> wrote: > Hi again, >

Re: [sane-devel] Weird behavior in exagear.

2018-01-12 Thread Jeff Sadowski
mmend looking into a Network model like MFC-J485DW or something from the same series." Hmmm, looks like I need to restate the problem. On Fri, Jan 12, 2018 at 7:55 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > My code is simply calling scanimage the way I posted here already.

Re: [sane-devel] Weird behavior in exagear.

2018-01-12 Thread Jeff Sadowski
90+% On Fri, Jan 12, 2018 at 10:13 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > I tried on my laptop to make sure it wasn't something in exagear and I > got the same results. So I am sure there is a problem with the driver. > > On Fri, Jan 12, 2018 at 6:55 PM, Olaf Mee

Re: [sane-devel] Weird behavior in exagear.

2018-01-12 Thread Jeff Sadowski
I tried on my laptop to make sure it wasn't something in exagear and I got the same results. So I am sure there is a problem with the driver. On Fri, Jan 12, 2018 at 6:55 PM, Olaf Meeuwissen <paddy-h...@member.fsf.org> wrote: > Hi Jeff, > > Jeff Sadowski writes: > >> M

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
port to get it working again somehow. On Thu, Jan 11, 2018 at 12:03 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > uning sane -l -d128 -e I am able to see the following error. > > root@raspberrypi:~:arm$ saned -l -d128 -e > > [saned] do_scan: wrote 8192 bytes to cli

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
usbreset that I get here allows me to start another scan https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line It is just the last bit of the scan that stops. On Thu, Jan 11, 2018 at 1:46 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > I wonder it

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
frame Progress:98.8% scanimage: min/max graylevel value = 11/255 Application transferred too few scanlines On Thu, Jan 11, 2018 at 11:33 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > ah looks like I need the -l flag > > On Thu, Jan 11, 2018 at 11:21 AM, Jeff Sadowski <jeff.

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
:19 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > root@raspberrypi:~:arm$ dpkg -c brscan2-0.2.5-1.i386.deb |grep lib|grep so > -rwxr-xr-x root/root 11444 2009-12-01 18:38 ./usr/lib/libbrcolm2.so.1.0.0 > -rwxr-xr-x root/root 27912 2009-12-01 18:38 > ./usr/lib/libb

Re: [sane-devel] Weird behavior in exagear.

2018-01-11 Thread Jeff Sadowski
ah looks like I need the -l flag On Thu, Jan 11, 2018 at 11:21 AM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > Progress. I am now able to scan jpeg files :-) > And test out more of my phpsaneng program. > My preview worked awesome. I was able to watch the image as it was