[sane-devel] gscan2pdf v2.0.3 released

2018-03-30 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 2.0.3:
* Always update image viewer if page selection changes
  Closes Debian bug #893026 (Preview pane does not update)
* Fixed manually typing date in metadata dialog (again)
  Closes Debian bug #893024 (Manual entry into UI date widget is broken)
* If image is zoomed to fit viewer, update zoom when the size of the
  viewer changes
* Update cursor depending on selected tool and position
* Build corrupt session file by hand rather than storing binary file
  that is not universally compatible. Closes bug #293
  (t/175_open_session2.t fails on i686: Long integer size is not
  compatible)
* Convert all scans to PNG to allow tesseract to extract resolution
* Ignore invalid options in profile
* Ignore options in profile that are already within tolerance
* Update to Hungarian translation (thanks to csola)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] test backend

2018-03-30 Thread Jeff
I know about the test backend, and it is very useful.

However, it cannot cover every combination of option type/reload that is
out in the wild.

I often have to spend hours mocking up a backend from a log file to be
able to reproduce a bug in gscan2pdf, in order then to be able to fix it.

It would be really useful to have a SANE option to test a real backend
without the scanner being present. i.e. instead of calling
sane_device_open, to be able to call sane_device_mock_open or similar,
which would still allow sane_set_option, etc., but would not try to pass
the options to the hardware.

Unfortunately, I assume that to implement something like this, every
backend would have to be changed to separate out the hardware calls.

Would anyone else find something like this useful?

Does anyone have any better ideas for supporting hardware for which
there is no access?

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v2.0.2 released

2018-03-26 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 2.0.2:
* Clear view if no page selected
* Change boolean scan options to use switch instead of checkbox widget
* Fixed manually typing date in metadata dialog.
  Closes Debian bug #893024
  (Manual entry into UI date widget is broken)
* Take colours for image viewer from theme. Closes Debian bug #893025
  (White UI background makes page borders disappear)
* Support Glib::Object::Introspection < 0.043



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v2.0.1 released

2018-03-12 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 2.0.1:
* Fixed editing OCR output
* Fixed displaying image after undoing
* Fixed displaying image after deleting page
* Fixed text in progress bars
* Fixed warning message clearing all pages if no scanner detected



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v2.0.0 released

2018-03-08 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 2.0.0:
* Switch from gtk+-2 to gtk+-3, requiring the reimplementation of
  GtkImageview in pure Perl, as C library not compatible with gtk+-3.
* Fixed ghosting if flatbed only source option but not set.
  Closes #290 (Page Options -> Pages: scanning only first page of n)
* Fixed setting preferences if frontend not set to libsane-image-perl
  and no scanner available. Closes #291 (Cannot change temporary
  directory)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage --batch-count=n not working

2018-02-11 Thread Jeff
On 11/02/18 01:33, gobo wrote:
> in the process of moving to a newer hp mfp printer and attempting to use
> the following command:
> 
> scanimage -x 215.9 -y 279.4 -d
> hpaio:/net/HP_Color_LaserJet_MFP_M477fdn?ip=192.168.1.101 \
>   -pv --mode gray --resolution 150 \
>   --batch=$FILE --batch-count=1 --source=ADF
> 
> the idea is to scan a single sheet through the adf.  as long as a single
> sheet is in the adf, a single file is generated.  however, if multiple
> sheets are loaded in the adf tray, the adf feeds all of them through
> anyway.  so it looks like the --batch-count=1 option is being ignored.
> 
> i don't know if i am using the command incorrectly, if this is a sane
> issue or an hplip issue.  can anyone advise.

It is an HPLIP issue. My OfficeJet does it too.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.11 released

2018-01-27 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.11:
* + preference "Force new scan job between pages"
* support applying profiles resulting in multiple reloads, to prevent
  profile dropdown from being cleared after setting profile.
  Closes #276 (Scan profile stays blank)
* Update to Czech translation (thanks to Pavel Borecki)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2018-01-12 Thread Jeff Sadowski
Thank you so much for helping me trouble shoot all this.
They supposedly have the source code for the driver so I will see if I
can compile that and see if I can find the issue with it. Although I'm
not so sure how it is suppose to work. It is interesting it gets most
of the image and stops near 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 Meeuwissen
> <paddy-h...@member.fsf.org> wrote:
>> Hi Jeff,
>>
>> Jeff Sadowski writes:
>>
>>> My code is simply calling scanimage the way I posted here already.
>>> Running the same commands by hand results in the same behaviour. I
>>> have my code write the command it runs in a file called ran.txt, so I
>>> can examine it and run it. I'm just using php to open a 3 pipe method
>>> of running scanimage. it is actually running it under "script" which
>>> allows scanimage to continually write to stdout/stderr without
>>> blocking which gets written to a stdout.txt and stderr.txt files. I
>>> also implemented the ability to send ctrl-c using the 3rd input pipe.
>>> So if my loop that is reading the pipes sees that a certain file
>>> exists and is still running it will send a ctrl-c. My frontend starts
>>> this php script and detaches and then reads it's output files to see
>>> what is going on it also continually loads the image being created by
>>> scanimage. I get the latest page number from stdout.txt/stderr.txt and
>>> 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. :-)
>>
>> I see.  So you're just layering on top of scanimage.  I thought you we
>> using a PHP layer on top of the SANE C API.  Sorry for overthinking
>> things.  The image acquisition logic in scanimage is correct so the
>> problem appears to be in the brother backend.
>>
>> Sorry for the detour,
>> --
>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>  Support Free Softwarehttps://my.fsf.org/donate
>>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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:
>
>> My code is simply calling scanimage the way I posted here already.
>> Running the same commands by hand results in the same behaviour. I
>> have my code write the command it runs in a file called ran.txt, so I
>> can examine it and run it. I'm just using php to open a 3 pipe method
>> of running scanimage. it is actually running it under "script" which
>> allows scanimage to continually write to stdout/stderr without
>> blocking which gets written to a stdout.txt and stderr.txt files. I
>> also implemented the ability to send ctrl-c using the 3rd input pipe.
>> So if my loop that is reading the pipes sees that a certain file
>> exists and is still running it will send a ctrl-c. My frontend starts
>> this php script and detaches and then reads it's output files to see
>> what is going on it also continually loads the image being created by
>> scanimage. I get the latest page number from stdout.txt/stderr.txt and
>> 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. :-)
>
> I see.  So you're just layering on top of scanimage.  I thought you we
> using a PHP layer on top of the SANE C API.  Sorry for overthinking
> things.  The image acquisition logic in scanimage is correct so the
> problem appears to be in the brother backend.
>
> Sorry for the detour,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-12 Thread Jeff Sadowski
Response from brother.

"Hi Jeff.

Any type of sharing feature on a USB model is not supported by
brother. Most questions we received for this are of a Microsoft
nature, but the same policy applies to other OS's as well.

If you are looking to have a machine work on multiple PC's, I
recommend 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.
> Running the same commands by hand results in the same behaviour. I
> have my code write the command it runs in a file called ran.txt, so I
> can examine it and run it. I'm just using php to open a 3 pipe method
> of running scanimage. it is actually running it under "script" which
> allows scanimage to continually write to stdout/stderr without
> blocking which gets written to a stdout.txt and stderr.txt files. I
> also implemented the ability to send ctrl-c using the 3rd input pipe.
> So if my loop that is reading the pipes sees that a certain file
> exists and is still running it will send a ctrl-c. My frontend starts
> this php script and detaches and then reads it's output files to see
> what is going on it also continually loads the image being created by
> scanimage. I get the latest page number from stdout.txt/stderr.txt and
> 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,
>>
>> Jeff Sadowski writes:
>>
>>> uning sane -l -d128 -e I am able to see the following error.
>>
>> This
>>
>>> [saned] do_scan: done, status=End of file reached
>>> [saned] process_request: waiting for request
>>> [saned] process_request: bad status 22
>>> [saned] quit: exiting
>>
>> is probably due to the error you get on the other end
>>
>>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>>> scanimage: acquiring RGB frame
>>> Progress:98.8%
>>> scanimage: min/max graylevel value = 11/255
>>> Application transferred too few scanlines
>>
>> which indicates that the image acquisition loop ended prematurely for
>> some reason.  While saned will happily continue to serve requests, how
>> the backend and scanner react to this depends on the scanner's firmware
>> and the backend's implementation.  It may very well be that the scanner
>> expects more read requests and refuses to reply to anything else while
>> the backend won't send any of those but instead tries to start a new
>> scan in vain.
>>
>> Based on what you wrote so far, I think this is a bug in the third party
>> brother backend you seem to be using.  The only people that can help you
>> with that are the brother backend developers.  There is nothing the SANE
>> developers can do about it.
>>
>> That said, are you sure *your* code is doing the right thing?  That is,
>> does it read data until sane_read() returns SANE_STATUS_EOF?  Or is it
>> just reading the number of pixels expected based on the results of a
>> sane_get_parameters() before you call sane_start()?  The latter is the
>> *wrong* way to read image data.
>>
>> Hope this helps,
>> --
>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>  Support Free Softwarehttps://my.fsf.org/donate
>>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-12 Thread Jeff Sadowski
My code is simply calling scanimage the way I posted here already.
Running the same commands by hand results in the same behaviour. I
have my code write the command it runs in a file called ran.txt, so I
can examine it and run it. I'm just using php to open a 3 pipe method
of running scanimage. it is actually running it under "script" which
allows scanimage to continually write to stdout/stderr without
blocking which gets written to a stdout.txt and stderr.txt files. I
also implemented the ability to send ctrl-c using the 3rd input pipe.
So if my loop that is reading the pipes sees that a certain file
exists and is still running it will send a ctrl-c. My frontend starts
this php script and detaches and then reads it's output files to see
what is going on it also continually loads the image being created by
scanimage. I get the latest page number from stdout.txt/stderr.txt and
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,
>
> Jeff Sadowski writes:
>
>> uning sane -l -d128 -e I am able to see the following error.
>
> This
>
>> [saned] do_scan: done, status=End of file reached
>> [saned] process_request: waiting for request
>> [saned] process_request: bad status 22
>> [saned] quit: exiting
>
> is probably due to the error you get on the other end
>
>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>> scanimage: acquiring RGB frame
>> Progress:98.8%
>> scanimage: min/max graylevel value = 11/255
>> Application transferred too few scanlines
>
> which indicates that the image acquisition loop ended prematurely for
> some reason.  While saned will happily continue to serve requests, how
> the backend and scanner react to this depends on the scanner's firmware
> and the backend's implementation.  It may very well be that the scanner
> expects more read requests and refuses to reply to anything else while
> the backend won't send any of those but instead tries to start a new
> scan in vain.
>
> Based on what you wrote so far, I think this is a bug in the third party
> brother backend you seem to be using.  The only people that can help you
> with that are the brother backend developers.  There is nothing the SANE
> developers can do about it.
>
> That said, are you sure *your* code is doing the right thing?  That is,
> does it read data until sane_read() returns SANE_STATUS_EOF?  Or is it
> just reading the number of pixels expected based on the results of a
> sane_get_parameters() before you call sane_start()?  The latter is the
> *wrong* way to read image data.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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 it works the same on a true x86 architecture it could be
> something with the brother driver. After those messages are generated
> the saned program stays running and tries to process other requests.
> However I need to reboot for it to start working again.
> I should be able to reset the usb 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 client
>> [saned] do_scan: trying to read 8188 bytes from scanner
>> [saned] do_scan: read 8188 bytes from scanner
>> [saned] do_scan: trying to write 8192 bytes to client
>> [saned] do_scan: wrote 8192 bytes to client
>> [saned] do_scan: trying to read 8188 bytes from scanner
>> [saned] do_scan: read 7488 bytes from scanner
>> [saned] do_scan: trying to write 7492 bytes to client
>> [saned] do_scan: wrote 7492 bytes to client
>> [saned] do_scan: trying to read 696 bytes from scanner
>> [saned] do_scan: read 0 bytes from scanner
>> [saned] do_scan: status = `End of file reached'
>> [saned] do_scan: statuscode `End of file reached' was added to buffer
>> [saned] do_scan: trying to write 9 bytes to client
>> [saned] do_scan: wrote 9 bytes to client
>> [saned] do_scan: done, status=End of file reached
>> [saned] process_request: waiting for request
>> [saned] process_request: bad status 22
>> [saned] quit: exiting
>>
>> on the other end I get the following error
>>
>> scanimage  '-v' '-p' '--batch=preview.jpg' '--batch-count' '1'
>> '--format' 'jpeg' '-l' '0' '-t' '0' '-x' '215.9' '-y' '355.6' '-d'
>> 'net:192.168.1.27:brother2:bus1;dev1'
>> scanimage: rounded value of br-x from 215.9 to 215.88
>> scanimage: rounded value of br-y from 355.6 to 355.567
>> Scanning 1 page, incrementing by 1, numbering from 1
>> Scanning page 1
>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>> scanimage: acquiring RGB 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.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
>>>> being scanned.
>>>>
>>>> I redid git as recommended in INSTALL.linux
>>>>
>>>> apt remove sane sane-utils
>>>> git clone git://git.debian.org/sane/sane-backends.git
>>>> ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
>>>> --localstatedir=/var  --enable-avahi
>>>> make
>>>> make install
>>>>
>>>> it is odd that -V reports as so
>>>>
>>>> root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V
>>>> scanimage (sane-backends) 1.0.27git; backend version 1.0.24
>>>>
>>>> Is this something I should be worried about?
>>>> Where would it be getting 1.0.24
>>>> I tried removing all sane files I could find and then
>>>> make install from my git repo and I still get the same output.
>>>>
>>>>
>>>> Now to try and get saned working
>>>> saned use to at least connect to the port but now I get nothing
>>>>
>>>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128
>>>> root@raspberrypi:~/sane/sane-backends:x86$
>>>>
>>>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27
>>>> root@raspberrypi:~/sane/sane-backends:x86$
>>>>
>>>> any suggestions on how to get it to report more?
>>>> maybe a compile flag to get something from it?
>>>>
>>>> On Thu, Jan 11, 2018 at 8: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
>>&g

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

2018-01-11 Thread Jeff Sadowski
I wonder it it works the same on a true x86 architecture it could be
something with the brother driver. After those messages are generated
the saned program stays running and tries to process other requests.
However I need to reboot for it to start working again.
I should be able to reset the usb 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 client
> [saned] do_scan: trying to read 8188 bytes from scanner
> [saned] do_scan: read 8188 bytes from scanner
> [saned] do_scan: trying to write 8192 bytes to client
> [saned] do_scan: wrote 8192 bytes to client
> [saned] do_scan: trying to read 8188 bytes from scanner
> [saned] do_scan: read 7488 bytes from scanner
> [saned] do_scan: trying to write 7492 bytes to client
> [saned] do_scan: wrote 7492 bytes to client
> [saned] do_scan: trying to read 696 bytes from scanner
> [saned] do_scan: read 0 bytes from scanner
> [saned] do_scan: status = `End of file reached'
> [saned] do_scan: statuscode `End of file reached' was added to buffer
> [saned] do_scan: trying to write 9 bytes to client
> [saned] do_scan: wrote 9 bytes to client
> [saned] do_scan: done, status=End of file reached
> [saned] process_request: waiting for request
> [saned] process_request: bad status 22
> [saned] quit: exiting
>
> on the other end I get the following error
>
> scanimage  '-v' '-p' '--batch=preview.jpg' '--batch-count' '1'
> '--format' 'jpeg' '-l' '0' '-t' '0' '-x' '215.9' '-y' '355.6' '-d'
> 'net:192.168.1.27:brother2:bus1;dev1'
> scanimage: rounded value of br-x from 215.9 to 215.88
> scanimage: rounded value of br-y from 355.6 to 355.567
> Scanning 1 page, incrementing by 1, numbering from 1
> Scanning page 1
> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
> scanimage: acquiring RGB 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.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
>>> being scanned.
>>>
>>> I redid git as recommended in INSTALL.linux
>>>
>>> apt remove sane sane-utils
>>> git clone git://git.debian.org/sane/sane-backends.git
>>> ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
>>> --localstatedir=/var  --enable-avahi
>>> make
>>> make install
>>>
>>> it is odd that -V reports as so
>>>
>>> root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V
>>> scanimage (sane-backends) 1.0.27git; backend version 1.0.24
>>>
>>> Is this something I should be worried about?
>>> Where would it be getting 1.0.24
>>> I tried removing all sane files I could find and then
>>> make install from my git repo and I still get the same output.
>>>
>>>
>>> Now to try and get saned working
>>> saned use to at least connect to the port but now I get nothing
>>>
>>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128
>>> root@raspberrypi:~/sane/sane-backends:x86$
>>>
>>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27
>>> root@raspberrypi:~/sane/sane-backends:x86$
>>>
>>> any suggestions on how to get it to report more?
>>> maybe a compile flag to get something from it?
>>>
>>> On Thu, Jan 11, 2018 at 8: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/libbrscandec2.so.1.0.0
>>>> -rwxr-xr-x root/root 94516 2009-12-01 18:38
>>>> ./usr/lib/sane/libsane-brother2.so.1.0.7
>>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>>> ./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1
>>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>>> ./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0
>>>> lrwxrwxrwx root/roo

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

2018-01-11 Thread Jeff Sadowski
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 client
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 8188 bytes from scanner
[saned] do_scan: trying to write 8192 bytes to client
[saned] do_scan: wrote 8192 bytes to client
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 7488 bytes from scanner
[saned] do_scan: trying to write 7492 bytes to client
[saned] do_scan: wrote 7492 bytes to client
[saned] do_scan: trying to read 696 bytes from scanner
[saned] do_scan: read 0 bytes from scanner
[saned] do_scan: status = `End of file reached'
[saned] do_scan: statuscode `End of file reached' was added to buffer
[saned] do_scan: trying to write 9 bytes to client
[saned] do_scan: wrote 9 bytes to client
[saned] do_scan: done, status=End of file reached
[saned] process_request: waiting for request
[saned] process_request: bad status 22
[saned] quit: exiting

on the other end I get the following error

scanimage  '-v' '-p' '--batch=preview.jpg' '--batch-count' '1'
'--format' 'jpeg' '-l' '0' '-t' '0' '-x' '215.9' '-y' '355.6' '-d'
'net:192.168.1.27:brother2:bus1;dev1'
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
Scanning 1 page, incrementing by 1, numbering from 1
Scanning page 1
scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
scanimage: acquiring RGB 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.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
>> being scanned.
>>
>> I redid git as recommended in INSTALL.linux
>>
>> apt remove sane sane-utils
>> git clone git://git.debian.org/sane/sane-backends.git
>> ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
>> --localstatedir=/var  --enable-avahi
>> make
>> make install
>>
>> it is odd that -V reports as so
>>
>> root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V
>> scanimage (sane-backends) 1.0.27git; backend version 1.0.24
>>
>> Is this something I should be worried about?
>> Where would it be getting 1.0.24
>> I tried removing all sane files I could find and then
>> make install from my git repo and I still get the same output.
>>
>>
>> Now to try and get saned working
>> saned use to at least connect to the port but now I get nothing
>>
>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128
>> root@raspberrypi:~/sane/sane-backends:x86$
>>
>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27
>> root@raspberrypi:~/sane/sane-backends:x86$
>>
>> any suggestions on how to get it to report more?
>> maybe a compile flag to get something from it?
>>
>> On Thu, Jan 11, 2018 at 8: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/libbrscandec2.so.1.0.0
>>> -rwxr-xr-x root/root 94516 2009-12-01 18:38
>>> ./usr/lib/sane/libsane-brother2.so.1.0.7
>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>> ./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1
>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>> ./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0
>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>> ./usr/lib/libbrscandec2.so -> /usr/lib/libbrscandec2.so.1
>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>> ./usr/lib/libbrcolm2.so.1 -> /usr/lib/libbrcolm2.so.1.0.0
>>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>>> ./usr/lib/sane/libsane-brother2.so.1 ->
>>> /usr/lib/sane/libsane-brother2.so.1.0.7
>>> lrwxrwxrwx 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,
>>>>
>&g

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
> being scanned.
>
> I redid git as recommended in INSTALL.linux
>
> apt remove sane sane-utils
> git clone git://git.debian.org/sane/sane-backends.git
> ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
> --localstatedir=/var  --enable-avahi
> make
> make install
>
> it is odd that -V reports as so
>
> root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V
> scanimage (sane-backends) 1.0.27git; backend version 1.0.24
>
> Is this something I should be worried about?
> Where would it be getting 1.0.24
> I tried removing all sane files I could find and then
> make install from my git repo and I still get the same output.
>
>
> Now to try and get saned working
> saned use to at least connect to the port but now I get nothing
>
> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128
> root@raspberrypi:~/sane/sane-backends:x86$
>
> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27
> root@raspberrypi:~/sane/sane-backends:x86$
>
> any suggestions on how to get it to report more?
> maybe a compile flag to get something from it?
>
> On Thu, Jan 11, 2018 at 8: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/libbrscandec2.so.1.0.0
>> -rwxr-xr-x root/root 94516 2009-12-01 18:38
>> ./usr/lib/sane/libsane-brother2.so.1.0.7
>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>> ./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1
>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>> ./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0
>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>> ./usr/lib/libbrscandec2.so -> /usr/lib/libbrscandec2.so.1
>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>> ./usr/lib/libbrcolm2.so.1 -> /usr/lib/libbrcolm2.so.1.0.0
>> lrwxrwxrwx root/root 0 2009-12-01 18:38
>> ./usr/lib/sane/libsane-brother2.so.1 ->
>> /usr/lib/sane/libsane-brother2.so.1.0.7
>> lrwxrwxrwx 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,
>>>
>>> Jeff Sadowski writes:
>>>
>>>> It seems to be wanting .la files when I have .so files so is there a
>>>> flag to support shared object files over .la?
>>>
>>> The dynamic loading should look for .la files first and failing to find
>>> those, look for .so files.  You don't need any flag for that (and AFAIK
>>> there isn't one).
>>>
>>>> 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/git/sane/sane-backends.git
>>>>>
>>>>> I did
>>>>> ./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
>>>>> --sysconfdir=/etc --localstatedir=/var  --
>>>>> make
>>>>> make install
>>>>>
>>>>> now when I run "scanimage -L" it can't see my scanner. Is there a flag
>>>>> I need to use other drivers than the ones it compiles as the brother
>>>>> printer driver is a binary package?
>>>
>>> The backends you built are installed below /usr/lib/i386-linux-gnu/sane/
>>> as libsane-$backendname.$extension, right?  Where is the backend of that
>>> brother binary package installed?
>>>
>>> If it's not in the same directory, you need to tell the loader to look
>>> in the directory where the brother binary package installed its
>>> backend.  Let's say that is /opt/brother/sane, then you'd have to run
>>>
>>>   LD_LIBRARY_PATH=/opt/brother/sane scanimage -L
>>>
>>> Alternatively, you can make a symbolic link to the brother backend from
>>> /usr/lib/i386-linux-gnu/sane/.  Using the same example location
>>>
>>>   cd /usr/lib/i386-linux-gnu/sane
>>>   ln -s /opt/brother/sane/libsane-$backendname.$extension
>>>
>>> Hope this helps,
>>> --
>>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>>  Support Free Softwarehttps://my.fsf.org/donate
>>>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-11 Thread Jeff Sadowski
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
being scanned.

I redid git as recommended in INSTALL.linux

apt remove sane sane-utils
git clone git://git.debian.org/sane/sane-backends.git
./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
--localstatedir=/var  --enable-avahi
make
make install

it is odd that -V reports as so

root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V
scanimage (sane-backends) 1.0.27git; backend version 1.0.24

Is this something I should be worried about?
Where would it be getting 1.0.24
I tried removing all sane files I could find and then
make install from my git repo and I still get the same output.


Now to try and get saned working
saned use to at least connect to the port but now I get nothing

root@raspberrypi:~/sane/sane-backends:x86$ saned -d128
root@raspberrypi:~/sane/sane-backends:x86$

root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27
root@raspberrypi:~/sane/sane-backends:x86$

any suggestions on how to get it to report more?
maybe a compile flag to get something from it?

On Thu, Jan 11, 2018 at 8: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/libbrscandec2.so.1.0.0
> -rwxr-xr-x root/root 94516 2009-12-01 18:38
> ./usr/lib/sane/libsane-brother2.so.1.0.7
> lrwxrwxrwx root/root 0 2009-12-01 18:38
> ./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1
> lrwxrwxrwx root/root 0 2009-12-01 18:38
> ./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0
> lrwxrwxrwx root/root 0 2009-12-01 18:38
> ./usr/lib/libbrscandec2.so -> /usr/lib/libbrscandec2.so.1
> lrwxrwxrwx root/root 0 2009-12-01 18:38
> ./usr/lib/libbrcolm2.so.1 -> /usr/lib/libbrcolm2.so.1.0.0
> lrwxrwxrwx root/root 0 2009-12-01 18:38
> ./usr/lib/sane/libsane-brother2.so.1 ->
> /usr/lib/sane/libsane-brother2.so.1.0.7
> lrwxrwxrwx 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,
>>
>> Jeff Sadowski writes:
>>
>>> It seems to be wanting .la files when I have .so files so is there a
>>> flag to support shared object files over .la?
>>
>> The dynamic loading should look for .la files first and failing to find
>> those, look for .so files.  You don't need any flag for that (and AFAIK
>> there isn't one).
>>
>>> 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/git/sane/sane-backends.git
>>>>
>>>> I did
>>>> ./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
>>>> --sysconfdir=/etc --localstatedir=/var  --
>>>> make
>>>> make install
>>>>
>>>> now when I run "scanimage -L" it can't see my scanner. Is there a flag
>>>> I need to use other drivers than the ones it compiles as the brother
>>>> printer driver is a binary package?
>>
>> The backends you built are installed below /usr/lib/i386-linux-gnu/sane/
>> as libsane-$backendname.$extension, right?  Where is the backend of that
>> brother binary package installed?
>>
>> If it's not in the same directory, you need to tell the loader to look
>> in the directory where the brother binary package installed its
>> backend.  Let's say that is /opt/brother/sane, then you'd have to run
>>
>>   LD_LIBRARY_PATH=/opt/brother/sane scanimage -L
>>
>> Alternatively, you can make a symbolic link to the brother backend from
>> /usr/lib/i386-linux-gnu/sane/.  Using the same example location
>>
>>   cd /usr/lib/i386-linux-gnu/sane
>>   ln -s /opt/brother/sane/libsane-$backendname.$extension
>>
>> Hope this helps,
>> --
>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>  Support Free Softwarehttps://my.fsf.org/donate
>>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-11 Thread Jeff Sadowski
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/libbrscandec2.so.1.0.0
-rwxr-xr-x root/root 94516 2009-12-01 18:38
./usr/lib/sane/libsane-brother2.so.1.0.7
lrwxrwxrwx root/root 0 2009-12-01 18:38
./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1
lrwxrwxrwx root/root 0 2009-12-01 18:38
./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0
lrwxrwxrwx root/root 0 2009-12-01 18:38
./usr/lib/libbrscandec2.so -> /usr/lib/libbrscandec2.so.1
lrwxrwxrwx root/root 0 2009-12-01 18:38
./usr/lib/libbrcolm2.so.1 -> /usr/lib/libbrcolm2.so.1.0.0
lrwxrwxrwx root/root 0 2009-12-01 18:38
./usr/lib/sane/libsane-brother2.so.1 ->
/usr/lib/sane/libsane-brother2.so.1.0.7
lrwxrwxrwx 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,
>
> Jeff Sadowski writes:
>
>> It seems to be wanting .la files when I have .so files so is there a
>> flag to support shared object files over .la?
>
> The dynamic loading should look for .la files first and failing to find
> those, look for .so files.  You don't need any flag for that (and AFAIK
> there isn't one).
>
>> 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/git/sane/sane-backends.git
>>>
>>> I did
>>> ./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
>>> --sysconfdir=/etc --localstatedir=/var  --
>>> make
>>> make install
>>>
>>> now when I run "scanimage -L" it can't see my scanner. Is there a flag
>>> I need to use other drivers than the ones it compiles as the brother
>>> printer driver is a binary package?
>
> The backends you built are installed below /usr/lib/i386-linux-gnu/sane/
> as libsane-$backendname.$extension, right?  Where is the backend of that
> brother binary package installed?
>
> If it's not in the same directory, you need to tell the loader to look
> in the directory where the brother binary package installed its
> backend.  Let's say that is /opt/brother/sane, then you'd have to run
>
>   LD_LIBRARY_PATH=/opt/brother/sane scanimage -L
>
> Alternatively, you can make a symbolic link to the brother backend from
> /usr/lib/i386-linux-gnu/sane/.  Using the same example location
>
>   cd /usr/lib/i386-linux-gnu/sane
>   ln -s /opt/brother/sane/libsane-$backendname.$extension
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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/git/sane/sane-backends.git
>
> I did
> ./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
> --sysconfdir=/etc --localstatedir=/var  --
> make
> make install
>
> now when I run "scanimage -L" it can't see my scanner. Is there 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 version 1.0.24
>>
>> ugh that is old debian-8 image from exagear is a bit dated.
>>
>> I'll get the current backend and compile that and see if that works.
>> I have no idea how or if this will work since it is an emulated 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
>>>>> for jpeg and png? It is looking like I have to try and put some other
>>>>> virtual os on my raspberry pi 3 system.
>>>>
>>>> Isn't it just easier to use ImageMagick or GraphicsMagick to convert
>>>> from pnm to what you want?
>>>
>>> Support for JPEG and PNG output was added to scanimage in 1.0.25.  So if
>>> you have that (and your distribution enabled it), you don't need either
>>> of the *Magick's.  Note that there were some bugfixes to the JPEG and
>>> PNG support in 1.0.27.
>>>
>>> Hope this helps,
>>> --
>>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>>  Support Free Softwarehttps://my.fsf.org/donate
>>>  Join the Free Software Foundation  https://my.fsf.org/join
>>>
>>> --
>>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-10 Thread Jeff Sadowski
I pulled the current git of sane-backend from
https://anonscm.debian.org/git/sane/sane-backends.git

I did
./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu
--sysconfdir=/etc --localstatedir=/var  --
make
make install

now when I run "scanimage -L" it can't see my scanner. Is there 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 version 1.0.24
>
> ugh that is old debian-8 image from exagear is a bit dated.
>
> I'll get the current backend and compile that and see if that works.
> I have no idea how or if this will work since it is an emulated 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
>>>> for jpeg and png? It is looking like I have to try and put some other
>>>> virtual os on my raspberry pi 3 system.
>>>
>>> Isn't it just easier to use ImageMagick or GraphicsMagick to convert
>>> from pnm to what you want?
>>
>> Support for JPEG and PNG output was added to scanimage in 1.0.25.  So if
>> you have that (and your distribution enabled it), you don't need either
>> of the *Magick's.  Note that there were some bugfixes to the JPEG and
>> PNG support in 1.0.27.
>>
>> Hope this helps,
>> --
>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>  Support Free Softwarehttps://my.fsf.org/donate
>>  Join the Free Software Foundation  https://my.fsf.org/join
>>
>> --
>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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

2018-01-10 Thread Jeff Sadowski
root@raspberrypi:~:x86$ scanimage --version
scanimage (sane-backends) 1.0.24; backend version 1.0.24

ugh that is old debian-8 image from exagear is a bit dated.

I'll get the current backend and compile that and see if that works.
I have no idea how or if this will work since it is an emulated 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
>>> for jpeg and png? It is looking like I have to try and put some other
>>> virtual os on my raspberry pi 3 system.
>>
>> Isn't it just easier to use ImageMagick or GraphicsMagick to convert
>> from pnm to what you want?
>
> Support for JPEG and PNG output was added to scanimage in 1.0.25.  So if
> you have that (and your distribution enabled it), you don't need either
> of the *Magick's.  Note that there were some bugfixes to the JPEG and
> PNG support in 1.0.27.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] [janitorial] Relocating the SANE Project

2018-01-08 Thread Jeff
On 08/01/18 08:46, Olaf Meeuwissen wrote:
> What are your preferences?  Feel free to mention other options.

There is also Sourceforge.

I don't have much, if any, free time, but I am a DD, so if help was
needed with the mailing list replacement using Debian infrastructure, I
might be able to lend a hand.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2018-01-07 Thread Jeff
On 07/01/18 05:53, Jeff Sadowski wrote:
> 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.

Isn't it just easier to use ImageMagick or GraphicsMagick to convert
from pnm to what you want?

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 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 follows" and came across
>>
>> https://github.com/kkaempf/sane-backends/blob/master/frontend/scanimage.c
>>
>> and looking at that it looks like I was getting a pnm header even
>> though I asked for a jpg.
>> maybe I need to install jpg packages to use 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 sane-backends 1.0.24 starting up
>>> [saned] do_bindings: [0] bind failed: Address already in use
>>> [saned] check_host: access by remote host: :::192.168.1.252
>>> [saned] init: access granted to apache@:::192.168.1.252
>>>
>>> gets to 96%ish then
>>>
>>> [saned] process_request: bad status 22
>>> [saned] bailing out, waiting for children...
>>> [saned] bail_out: all children exited
>>> [saned] main: starting debug mode (level 2)
>>> [saned] saned (AF-indep+IPv6) 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.
>>>>
>>>> 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 that both methods fail in two different ways.
>>>>
>>>> using saned from a second server:
>>>>
>>>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
>>>> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
>>>> "net:192.168.1.27:brother2:bus1;dev1"
>>>>
>>>> results in
>>>>
>>>> scanimage: rounded value of br-x from 215.9 to 215.88
>>>> scanimage: rounded value of br-y from 355.6 to 355.567
>>>> Scanning 1 page, incrementing by 1, numbering from 1
>>>> Scanning page 1
>>>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>>>> scanimage: acquiring RGB frame
>>>> Progress: 96%
>>>> scanimage: min/max graylevel value = 11/255
>>>> Application transferred too few scanlines
>>>>
>>>> hexdump -c preview.jpg.part|head looks like so
>>>>
>>>> 000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 001  \0 310
>>>> 010  \0 310  \0  \0 377 333  \0   C  \0  \b 006 006  \a 006 005  \b
>>>> 020  \a  \a  \a  \t  \t  \b  \n  \f 024  \r  \f  \v  \v  \f 031 022
>>>> 030 023 017 024 035 032 037 036 035 032 034 034   $   .   '
>>>> 040   "   ,   # 034 034   (   7   )   ,   0   1   4   4   4 037   '
>>>> 050   9   =   8   2   <   .   3   4   2 377 333  \0   C 001  \t  \t
>>>> 060  \t  \f  \v  \f 030  \r  \r 030   2   ! 034   !   2   2   2   2
>>>> 070   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2
>>>> *
>>>> 090   2   2   2   2   2   2   2   2   2   2   2   2   2   2 377 300
>>>>
>>>> I can view this file in most image viewers
>>>>
>>>> directly from the server connected to the printer (a raspberry pi with
>>>> exagear to run the brother software)
>>>>
>>>> using
>>>>
>>>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" 

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 follows" and came across
>
> https://github.com/kkaempf/sane-backends/blob/master/frontend/scanimage.c
>
> and looking at that it looks like I was getting a pnm header even
> though I asked for a jpg.
> maybe I need to install jpg packages to use 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 sane-backends 1.0.24 starting up
>> [saned] do_bindings: [0] bind failed: Address already in use
>> [saned] check_host: access by remote host: :::192.168.1.252
>> [saned] init: access granted to apache@:::192.168.1.252
>>
>> gets to 96%ish then
>>
>> [saned] process_request: bad status 22
>> [saned] bailing out, waiting for children...
>> [saned] bail_out: all children exited
>> [saned] main: starting debug mode (level 2)
>> [saned] saned (AF-indep+IPv6) 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.
>>>
>>> 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 that both methods fail in two different ways.
>>>
>>> using saned from a second server:
>>>
>>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
>>> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
>>> "net:192.168.1.27:brother2:bus1;dev1"
>>>
>>> results in
>>>
>>> scanimage: rounded value of br-x from 215.9 to 215.88
>>> scanimage: rounded value of br-y from 355.6 to 355.567
>>> Scanning 1 page, incrementing by 1, numbering from 1
>>> Scanning page 1
>>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>>> scanimage: acquiring RGB frame
>>> Progress: 96%
>>> scanimage: min/max graylevel value = 11/255
>>> Application transferred too few scanlines
>>>
>>> hexdump -c preview.jpg.part|head looks like so
>>>
>>> 000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 001  \0 310
>>> 010  \0 310  \0  \0 377 333  \0   C  \0  \b 006 006  \a 006 005  \b
>>> 020  \a  \a  \a  \t  \t  \b  \n  \f 024  \r  \f  \v  \v  \f 031 022
>>> 030 023 017 024 035 032 037 036 035 032 034 034   $   .   '
>>> 040   "   ,   # 034 034   (   7   )   ,   0   1   4   4   4 037   '
>>> 050   9   =   8   2   <   .   3   4   2 377 333  \0   C 001  \t  \t
>>> 060  \t  \f  \v  \f 030  \r  \r 030   2   ! 034   !   2   2   2   2
>>> 070   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2
>>> *
>>> 090   2   2   2   2   2   2   2   2   2   2   2   2   2   2 377 300
>>>
>>> I can view this file in most image viewers
>>>
>>> directly from the server connected to the printer (a raspberry pi with
>>> exagear to run the brother software)
>>>
>>> using
>>>
>>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
>>> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
>>> "brother2:bus1;dev1"
>>>
>>> results in
>>>
>>> scanimage: rounded value of br-x from 215.9 to 215.88
>>> scanimage: rounded value of br-y from 355.6 to 355.567
>>> Scanning 1 pages, incrementing by 1, numbering from 1
>>> Scanning page 1
>>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pix

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

2018-01-06 Thread Jeff Sadowski
interesting I searched for "scanimage # sane data follows" and came across

https://github.com/kkaempf/sane-backends/blob/master/frontend/scanimage.c

and looking at that it looks like I was getting a pnm header even
though I asked for a jpg.
maybe I need to install jpg packages to use 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 sane-backends 1.0.24 starting up
> [saned] do_bindings: [0] bind failed: Address already in use
> [saned] check_host: access by remote host: :::192.168.1.252
> [saned] init: access granted to apache@:::192.168.1.252
>
> gets to 96%ish then
>
> [saned] process_request: bad status 22
> [saned] bailing out, waiting for children...
> [saned] bail_out: all children exited
> [saned] main: starting debug mode (level 2)
> [saned] saned (AF-indep+IPv6) 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.
>>
>> 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 that both methods fail in two different ways.
>>
>> using saned from a second server:
>>
>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
>> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
>> "net:192.168.1.27:brother2:bus1;dev1"
>>
>> results in
>>
>> scanimage: rounded value of br-x from 215.9 to 215.88
>> scanimage: rounded value of br-y from 355.6 to 355.567
>> Scanning 1 page, incrementing by 1, numbering from 1
>> Scanning page 1
>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>> scanimage: acquiring RGB frame
>> Progress: 96%
>> scanimage: min/max graylevel value = 11/255
>> Application transferred too few scanlines
>>
>> hexdump -c preview.jpg.part|head looks like so
>>
>> 000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 001  \0 310
>> 010  \0 310  \0  \0 377 333  \0   C  \0  \b 006 006  \a 006 005  \b
>> 020  \a  \a  \a  \t  \t  \b  \n  \f 024  \r  \f  \v  \v  \f 031 022
>> 030 023 017 024 035 032 037 036 035 032 034 034   $   .   '
>> 040   "   ,   # 034 034   (   7   )   ,   0   1   4   4   4 037   '
>> 050   9   =   8   2   <   .   3   4   2 377 333  \0   C 001  \t  \t
>> 060  \t  \f  \v  \f 030  \r  \r 030   2   ! 034   !   2   2   2   2
>> 070   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2
>> *
>> 090   2   2   2   2   2   2   2   2   2   2   2   2   2   2 377 300
>>
>> I can view this file in most image viewers
>>
>> directly from the server connected to the printer (a raspberry pi with
>> exagear to run the brother software)
>>
>> using
>>
>> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
>> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
>> "brother2:bus1;dev1"
>>
>> results in
>>
>> scanimage: rounded value of br-x from 215.9 to 215.88
>> scanimage: rounded value of br-y from 355.6 to 355.567
>> Scanning 1 pages, incrementing by 1, numbering from 1
>> Scanning page 1
>> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
>> scanimage: acquiring RGB frame
>> Progress: 100%
>> scanimage: min/max graylevel value = 11/255
>> scanimage: read 11440416 bytes in total
>> Scanned page 1. (scanner status = 5)
>>
>> hexdump -c preview.jpg|head
>>
>> 000   P   6  \n   #   S   A   N   E   d   a   t   a   f
>> 010   o   l   l   o   w   s  \n   1   6   4   8   2   3   1   4
>> 020  \n   2   5   5  \n  \f 021 031  \r 022 032  \f 021 030  \f 021
>> 030 030  \f 021 030  \f 021 030  \f 021 030  \r 022 031  \r 022 031
>>

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

2018-01-05 Thread Jeff Sadowski
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 sane-backends 1.0.24 starting up
[saned] do_bindings: [0] bind failed: Address already in use
[saned] check_host: access by remote host: :::192.168.1.252
[saned] init: access granted to apache@:::192.168.1.252

gets to 96%ish then

[saned] process_request: bad status 22
[saned] bailing out, waiting for children...
[saned] bail_out: all children exited
[saned] main: starting debug mode (level 2)
[saned] saned (AF-indep+IPv6) 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.
>
> 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 that both methods fail in two different ways.
>
> using saned from a second server:
>
> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
> "net:192.168.1.27:brother2:bus1;dev1"
>
> results in
>
> scanimage: rounded value of br-x from 215.9 to 215.88
> scanimage: rounded value of br-y from 355.6 to 355.567
> Scanning 1 page, incrementing by 1, numbering from 1
> Scanning page 1
> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
> scanimage: acquiring RGB frame
> Progress: 96%
> scanimage: min/max graylevel value = 11/255
> Application transferred too few scanlines
>
> hexdump -c preview.jpg.part|head looks like so
>
> 000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 001  \0 310
> 010  \0 310  \0  \0 377 333  \0   C  \0  \b 006 006  \a 006 005  \b
> 020  \a  \a  \a  \t  \t  \b  \n  \f 024  \r  \f  \v  \v  \f 031 022
> 030 023 017 024 035 032 037 036 035 032 034 034   $   .   '
> 040   "   ,   # 034 034   (   7   )   ,   0   1   4   4   4 037   '
> 050   9   =   8   2   <   .   3   4   2 377 333  \0   C 001  \t  \t
> 060  \t  \f  \v  \f 030  \r  \r 030   2   ! 034   !   2   2   2   2
> 070   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2
> *
> 090   2   2   2   2   2   2   2   2   2   2   2   2   2   2 377 300
>
> I can view this file in most image viewers
>
> directly from the server connected to the printer (a raspberry pi with
> exagear to run the brother software)
>
> using
>
> /usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
> "1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
> "brother2:bus1;dev1"
>
> results in
>
> scanimage: rounded value of br-x from 215.9 to 215.88
> scanimage: rounded value of br-y from 355.6 to 355.567
> Scanning 1 pages, incrementing by 1, numbering from 1
> Scanning page 1
> scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
> scanimage: acquiring RGB frame
> Progress: 100%
> scanimage: min/max graylevel value = 11/255
> scanimage: read 11440416 bytes in total
> Scanned page 1. (scanner status = 5)
>
> hexdump -c preview.jpg|head
>
> 000   P   6  \n   #   S   A   N   E   d   a   t   a   f
> 010   o   l   l   o   w   s  \n   1   6   4   8   2   3   1   4
> 020  \n   2   5   5  \n  \f 021 031  \r 022 032  \f 021 030  \f 021
> 030 030  \f 021 030  \f 021 030  \f 021 030  \r 022 031  \r 022 031
> 040  \f 023 031  \f 021 030  \f 021 030  \f 021 030  \f 021 031  \f
> 050 021 030  \f 021 030  \f 021 030  \v 020 027  \f 021 030  \r 022
> 060 031  \v 020 027  \r 022 031  \f 023 031  \f 021 030  \f 021 030
> 070  \v 020 027  \r 022 032  \r 022 031  \f 021 030  \f 021 030  \f
> 080 021 030  \f 021 030  \f 021 030  \v 020 027  \f 021 030  \f 021
> 090 030  \f 021 030  \f 021 030  \r 022 031  \r 024 032  \f 023 031
>
> And I can clearly see text in the file that doesn't look right.
>
> P6
> # SANE data follows
>
> Image viewers say it isn't an image.
>
> Any ideas what is going on given that data?
>
> Is there anything I can run to get more debug data?

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


[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 that both methods fail in two different ways.

using saned from a second server:

/usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
"1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
"net:192.168.1.27:brother2:bus1;dev1"

results in

scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
Scanning 1 page, incrementing by 1, numbering from 1
Scanning page 1
scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
Progress: 96%
scanimage: min/max graylevel value = 11/255
Application transferred too few scanlines

hexdump -c preview.jpg.part|head looks like so

000 377 330 377 340  \0 020   J   F   I   F  \0 001 001 001  \0 310
010  \0 310  \0  \0 377 333  \0   C  \0  \b 006 006  \a 006 005  \b
020  \a  \a  \a  \t  \t  \b  \n  \f 024  \r  \f  \v  \v  \f 031 022
030 023 017 024 035 032 037 036 035 032 034 034   $   .   '
040   "   ,   # 034 034   (   7   )   ,   0   1   4   4   4 037   '
050   9   =   8   2   <   .   3   4   2 377 333  \0   C 001  \t  \t
060  \t  \f  \v  \f 030  \r  \r 030   2   ! 034   !   2   2   2   2
070   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2   2
*
090   2   2   2   2   2   2   2   2   2   2   2   2   2   2 377 300

I can view this file in most image viewers

directly from the server connected to the printer (a raspberry pi with
exagear to run the brother software)

using

/usr/bin/scanimage  "-v" "-p" "--batch=preview.jpg" "--batch-count"
"1" "--format" "jpeg" "-l" "0" "-t" "0" "-x" "215.9" "-y" "355.6" "-d"
"brother2:bus1;dev1"

results in

scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
Scanning 1 pages, incrementing by 1, numbering from 1
Scanning page 1
scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
Progress: 100%
scanimage: min/max graylevel value = 11/255
scanimage: read 11440416 bytes in total
Scanned page 1. (scanner status = 5)

hexdump -c preview.jpg|head

000   P   6  \n   #   S   A   N   E   d   a   t   a   f
010   o   l   l   o   w   s  \n   1   6   4   8   2   3   1   4
020  \n   2   5   5  \n  \f 021 031  \r 022 032  \f 021 030  \f 021
030 030  \f 021 030  \f 021 030  \f 021 030  \r 022 031  \r 022 031
040  \f 023 031  \f 021 030  \f 021 030  \f 021 030  \f 021 031  \f
050 021 030  \f 021 030  \f 021 030  \v 020 027  \f 021 030  \r 022
060 031  \v 020 027  \r 022 031  \f 023 031  \f 021 030  \f 021 030
070  \v 020 027  \r 022 032  \r 022 031  \f 021 030  \f 021 030  \f
080 021 030  \f 021 030  \f 021 030  \v 020 027  \f 021 030  \f 021
090 030  \f 021 030  \f 021 030  \r 022 031  \r 024 032  \f 023 031

And I can clearly see text in the file that doesn't look right.

P6
# SANE data follows

Image viewers say it isn't an image.

Any ideas what is going on given that data?

Is there anything I can run to get more debug data?

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


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 default scan area for -l and -t
> might not always be 0 so maybe I should do this
>
> scanimage --batch=preview.jpg --batch-count=1 --format=jpeg -d  device> --test-picture=Grid -x  -y  -l 0 -t 0
>
> On Thu, Jan 4, 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 --batch=preview.jpg --batch-count=1 --format=jpeg -d test:1
>> --resolution=50 --test-picture=Grid -x 200 -y 200
>>
>> Regards
>>
>> Jeff
>>
>>
>> --
>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] xsane preview scan?

2018-01-04 Thread Jeff Sadowski
Because I will use the default resolution I will leave out that
argument and I though about if the default scan area for -l and -t
might not always be 0 so maybe I should do this

scanimage --batch=preview.jpg --batch-count=1 --format=jpeg -d  --test-picture=Grid -x  -y  -l 0 -t 0

On Thu, Jan 4, 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 --batch=preview.jpg --batch-count=1 --format=jpeg -d test:1
> --resolution=50 --test-picture=Grid -x 200 -y 200
>
> Regards
>
> Jeff
>
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] xsane preview scan?

2018-01-04 Thread Jeff
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 --batch=preview.jpg --batch-count=1 --format=jpeg -d test:1
--resolution=50 --test-picture=Grid -x 200 -y 200

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 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 a preview and I need to make a
> decision of how to get a preview.
>
> I don't see a preview option to scanimage and am curious how xsane
> gets it's preview.
>
> When I try a preview with xsane with test:1 scanner I get a perfect
> grid. (I had set the "Select the test picture" to Grid)
>
> using scanimage '-h' '-d' 'test:1'
>
> I saw the options for test:1
>
> So I tried
>
> scanimage  '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
> '-d' 'test:1' '--test-picture' 'Grid'
>
> which did not come up with the same grid I get in the preview that xsane 
> shows.
>
> I thought well maybe it is getting the max x and y so I tried
>
> scanimage  '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
> '-d' 'test:1' '--test-picture' 'Grid' '-x' '200' '-y' '200'
>
> that wasn't it either.
>
> Then I noticed xsane can only set x and y up to 20 which is weird.
> even the defaults are 80 for x and 100 for y
>
> I tried 20x20 and 80x100
> but those didn't result in an image that xsane did either.
> I also tried lowest resolutions that isn't it either. So I am curious
> how xsane acquires a preview?
> Or better yet what is the best way to acquire a preview with scanimage?
>
> I think I would want to have the scanner scan as fast as possible so I
> thought lowest resolution.
> I also think I want my preview of the full bed so max x and max y
> the image I get when I try
>
> scanimage '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
> '-d' 'test:1' '--resolution' '1' '--test-picture' 'Grid' '-x' '200'
> '-y' '200'
>
> doesn't even look like a grid at all.
>
> So I thought I'd ask this list for some help.

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


[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 a preview and I need to make a
decision of how to get a preview.

I don't see a preview option to scanimage and am curious how xsane
gets it's preview.

When I try a preview with xsane with test:1 scanner I get a perfect
grid. (I had set the "Select the test picture" to Grid)

using scanimage '-h' '-d' 'test:1'

I saw the options for test:1

So I tried

scanimage  '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
'-d' 'test:1' '--test-picture' 'Grid'

which did not come up with the same grid I get in the preview that xsane shows.

I thought well maybe it is getting the max x and y so I tried

scanimage  '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
'-d' 'test:1' '--test-picture' 'Grid' '-x' '200' '-y' '200'

that wasn't it either.

Then I noticed xsane can only set x and y up to 20 which is weird.
even the defaults are 80 for x and 100 for y

I tried 20x20 and 80x100
but those didn't result in an image that xsane did either.
I also tried lowest resolutions that isn't it either. So I am curious
how xsane acquires a preview?
Or better yet what is the best way to acquire a preview with scanimage?

I think I would want to have the scanner scan as fast as possible so I
thought lowest resolution.
I also think I want my preview of the full bed so max x and max y
the image I get when I try

scanimage '--batch=preview.jpg' '--format' 'jpeg' '--batch-count' '1'
'-d' 'test:1' '--resolution' '1' '--test-picture' 'Grid' '-x' '200'
'-y' '200'

doesn't even look like a grid at all.

So I thought I'd ask this list for some help.

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Nikon Coolscan V ED: Error during device I/O

2017-12-13 Thread Jeff
On 12/12/17 22:09, Sebastian Niehaus wrote:
> Sane is 1.0.14 (which seems to be identical for all debian releases form
> oldoldstable to unstable. However the backend seems to be version 1.1.0
> (see debug log below...)

Hmm. I am running Debian. sid, buster and stretch have 1.0.25:

https://packages.debian.org/sid/libsane

jessie has 1.0.24 and wheezy 1.0.22.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.10 released

2017-11-27 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.10:
* + support for scan options without ranges, e.g. booleans, in tolerance
  check introduced in v1.8.9



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.9 released

2017-11-25 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.9:
* Rename preference "Open scan dialog at program start"
  -> "Open scanner at program start"
* Fix killing processes on cancel
* Hide extended page numbering checkbox and source document frame unless
  scanner is not capable of duplex and ADF is selected. Therefore, for
  duplex-capable scanners, this is never shown. For duplex-incapable
  scanners, this is shown if the ADF is selected, but otherwise hidden.
* + support for the new API in ImageMagick 7 for unsharp mask
* For single-sided documents, hide rotate facing/reverse/both side
  dropdown.
* + missing documentation for Edit/Properties
* Don't reapply scan settings if value is within tolerance.
  Closes bug #287 (Reload recursion limit (5050) exceeded)
* Fix crash reading corrupt config file
  Closes bug #288 (gscan2pdf-1.8.8 does not run in Ubuntu 16.04)
* Update to Slovak translation (thanks to Dušan Kazik)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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 "sane-port" (getaddrinfo)
[saned] do_bindings: [1] socket () using IPv6
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] listen ()
[saned] do_bindings: [0] socket () using IPv4
[saned] do_bindings: [0] setsockopt ()
[saned] do_bindings: [0] bind () to port 6566
[saned] do_bindings: [0] bind failed: Address already in use
[saned] run_standalone: spawning Avahi process
[saned] run_standalone: waiting for control connection
[saned] saned_avahi_callback: AVAHI_CLIENT_S_RUNNING
[saned] saned_create_avahi_services: adding service 'saned'
[saned] saned_avahi_group_callback: service 'saned' successfully established

I had disabled ipv6 because it interfered with my wireless.
I currently run it in a script that continually restarts it with -d2
is there a better way?

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] sane-devel package

2017-10-11 Thread Jeff
On 07/10/17 16:21, Joachim Bergerhoff wrote:
> I am running hplip-3.17.7 in view of installing sane support on my kde
> neon system for a HP colorlaser all-in-one.
> 
> I am working my way through the missing dependencies and the last
> remaining is "sane-devel"

Which distro are you using?

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Supported languages?

2017-10-01 Thread Jeff
On 01/10/17 19:04, Jeff Sadowski wrote:
> 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?

The messages specific to scanimage (look at the scanimage source, but
things like progress and error messages, e.g.
https://anonscm.debian.org/cgit/sane/sane-backends.git/tree/frontend/scanimage.c,
line 1919) are not translated, because scanimage hasn't tried to.

However, scanimage just passes on the strings for the option titles and
descriptions from the backend, and these are (often) translated.

Your application can do the same - just pass on the translations from
the backends (remember to use the sane-backends domain for gettext).

Obviously messages from your application you will have to translate
yourself.

> 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.

NOOO! Google translate is excellent for getting the gist of
something written in a language you don't understand, but the
translations are almost always really horrible.

The standard method for translating applications in C, Perl, etc. is to
mark the strings. Tradition dictates an underscore, e.g. _"string to be
translated" but sane-backends uses SANE_I18N (e.g.
https://anonscm.debian.org/cgit/sane/sane-backends.git/tree/backend/fujitsu.c,
line 3097).

PHP uses a similar method:

http://php.net/manual/en/function.gettext.php

So having appropriately marked your strings, gettext will extract them
into a .pot file, which you can give to your translators (I use rosetta
on launchpad), and you get a .po file for each language with the
appropriate translations (or not).

You convert the .po files to .mo files when you build the application
and install them to the appropriate place, and Bob should be your uncle.

It all works for me. The strings specific to gscan2pdf I have had
translated as above, and I fetch the backend strings from the
sane-backend domain.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 at 5:18 AM, Olaf Meeuwissen 
wrote:

> Hi Yury,
>
> Yury Tarasievich writes:
>
> > Does scanimage actually contain the l10n
> > functionality?
>
> Good question!
>
> While the backends have their messages translated to some 20 languages,
> it is the SANE frontend's responsibility to activate translation.  I did
> a quick check of the scanimage source code and it doesn't seem to do so.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Supported languages?

2017-10-01 Thread Jeff
On 01/10/17 06:18, Yury Tarasievich wrote:
> Does scanimage actually contain the l10n functionality?

Indirectly. scanimage pulls in the option title and description from the
backend. Therefore, if the backend has translations, then scanimage will
pass them on. e.g. fujitsu:

https://anonscm.debian.org/cgit/sane/sane-backends.git/tree/backend/fujitsu.c

  if(option==OPT_GAMMA){
opt->name = "gamma";
opt->title = SANE_I18N ("Gamma function exponent");
opt->desc = SANE_I18N ("Changes intensity of midtones");

SANE_I18N is the C macro that fetches the translations.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 seems to work a little better then I have seen so far. Like I
> mentioned I'm using proc_open in a process that I put in the background and
> to allow me to watch the image as it is being pulled. I am pulling the
> selection interface I saw on phpsane. I talked to the developer of phpsane
> and he suggested I rebuild it. I can successfully pull scanner specific
> options and create a custom option list for them. I'll add the option to
> stop and try it out. But I will caution other users on that. I 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 php saneng I have it on
>> > bitbucket for now and using proc_open. I will send the signal via
>>
>> You are not the first. Have you looked at
>> https://sourceforge.net/projects/phpsane/ or
>> https://github.com/anomen-s/php-sane or https://github.com/sbs20/scanserv
>> ?
>>
>> I should probably point a few things before you continue down the dark
>> path of making a wrapper around scanimage.
>>
>> When I started writing gscan2pdf back in 2006, it was exactly that, a
>> Gtk2 wrapper around scanimage, written in Perl.
>>
>> It seemed like a good idea to wrap scanimage at the time, but it quickly
>> became clear that the problem is that you have no way of handling option
>> reloads. You can make it work for one scanner easily enough, but in a
>> general sense, it is impossible.
>>
>> You are completely at the whim of the backend if an option, e.g. source
>> or depth, option force a reload. And they do, which changes unexpected
>> things. For instance some scanners support one page size (i.e. scan
>> size) for flatbed, and another for ADF.
>>
>> You can work around this by calling scanimage [extra options] --help
>> every time the user changes an option, but this will be slow. You can
>> make it quicker by caching the options, but this is error-prone.
>>
>> You will find that because of this, the order in which the options are
>> set is vitally important. i.e. for the above example, you have to set
>> the source option before the geometry options, as the range of geometry
>> options is changed by source. And confusingly, some backends have
>> different names for the same options.
>>
>> In the end, I wrote Perl bindings for the SANE API. This solved all of
>> the above problems, as you then get reload callbacks:
>>
>> http://search.cpan.org/~ratcliffe/Image-Sane-0.14/
>>
>> However, it is non-trivial. Here is a tutorial on writing PHP extensions
>> in C:
>>
>> http://web.archive.org/web/20110222035803/http://devzone.zen
>> d.com/article/1021
>>
>> Good luck.
>>
>> Regards
>>
>> Jeff
>>
>>
>> --
>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>  to sane-devel-requ...@lists.alioth.debian.org
>>
>
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-30 Thread Jeff Sadowski
Thank you for the input.

I'm redoing phpsane. I'll look at the others but I came up with a method
that seems to work a little better then I have seen so far. Like I
mentioned I'm using proc_open in a process that I put in the background and
to allow me to watch the image as it is being pulled. I am pulling the
selection interface I saw on phpsane. I talked to the developer of phpsane
and he suggested I rebuild it. I can successfully pull scanner specific
options and create a custom option list for them. I'll add the option to
stop and try it out. But I will caution other users on that. I 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 php saneng I have it on
> > bitbucket for now and using proc_open. I will send the signal via
>
> You are not the first. Have you looked at
> https://sourceforge.net/projects/phpsane/ or
> https://github.com/anomen-s/php-sane or https://github.com/sbs20/scanserv
> ?
>
> I should probably point a few things before you continue down the dark
> path of making a wrapper around scanimage.
>
> When I started writing gscan2pdf back in 2006, it was exactly that, a
> Gtk2 wrapper around scanimage, written in Perl.
>
> It seemed like a good idea to wrap scanimage at the time, but it quickly
> became clear that the problem is that you have no way of handling option
> reloads. You can make it work for one scanner easily enough, but in a
> general sense, it is impossible.
>
> You are completely at the whim of the backend if an option, e.g. source
> or depth, option force a reload. And they do, which changes unexpected
> things. For instance some scanners support one page size (i.e. scan
> size) for flatbed, and another for ADF.
>
> You can work around this by calling scanimage [extra options] --help
> every time the user changes an option, but this will be slow. You can
> make it quicker by caching the options, but this is error-prone.
>
> You will find that because of this, the order in which the options are
> set is vitally important. i.e. for the above example, you have to set
> the source option before the geometry options, as the range of geometry
> options is changed by source. And confusingly, some backends have
> different names for the same options.
>
> In the end, I wrote Perl bindings for the SANE API. This solved all of
> the above problems, as you then get reload callbacks:
>
> http://search.cpan.org/~ratcliffe/Image-Sane-0.14/
>
> However, it is non-trivial. Here is a tutorial on writing PHP extensions
> in C:
>
> http://web.archive.org/web/20110222035803/http://devzone.
> zend.com/article/1021
>
> Good luck.
>
> Regards
>
> Jeff
>
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Supported languages?

2017-09-30 Thread Jeff Sadowski
I set all those and I still get English.

export LANG=de_DE.utf8
export LANGUAGE=de_DE
export LC_ALL=de_DE
export LC_MESSAGES=de_DE
export LC_CTYPE=de_DE
export LANG=de_DE
export LANGUAGE=de_DE
scanimage -h

Or maybe I've been speaking German all along.
Or maybe there is a TARDIS translating 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 the de_DE locale is installed, the following should work
> (no need to export):
>
> LC_ALL=de_DE LC_MESSAGES=de_DE LC_CTYPE=de_DE LANG=de_DE LANGUAGE=de_DE
> scanimage
>
> Regards
>
> Jeff
>
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-30 Thread Jeff
On 29/09/17 15:52, Jeff Sadowski wrote:
> I am developing a php interface I'm calling it php saneng I have it on
> bitbucket for now and using proc_open. I will send the signal via

You are not the first. Have you looked at
https://sourceforge.net/projects/phpsane/ or
https://github.com/anomen-s/php-sane or https://github.com/sbs20/scanserv ?

I should probably point a few things before you continue down the dark
path of making a wrapper around scanimage.

When I started writing gscan2pdf back in 2006, it was exactly that, a
Gtk2 wrapper around scanimage, written in Perl.

It seemed like a good idea to wrap scanimage at the time, but it quickly
became clear that the problem is that you have no way of handling option
reloads. You can make it work for one scanner easily enough, but in a
general sense, it is impossible.

You are completely at the whim of the backend if an option, e.g. source
or depth, option force a reload. And they do, which changes unexpected
things. For instance some scanners support one page size (i.e. scan
size) for flatbed, and another for ADF.

You can work around this by calling scanimage [extra options] --help
every time the user changes an option, but this will be slow. You can
make it quicker by caching the options, but this is error-prone.

You will find that because of this, the order in which the options are
set is vitally important. i.e. for the above example, you have to set
the source option before the geometry options, as the range of geometry
options is changed by source. And confusingly, some backends have
different names for the same options.

In the end, I wrote Perl bindings for the SANE API. This solved all of
the above problems, as you then get reload callbacks:

http://search.cpan.org/~ratcliffe/Image-Sane-0.14/

However, it is non-trivial. Here is a tutorial on writing PHP extensions
in C:

http://web.archive.org/web/20110222035803/http://devzone.zend.com/article/1021

Good luck.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-30 Thread Jeff
On 29/09/17 22:30, Jeff Sadowski wrote:
> 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. Is this already built into sane-test backend somehow?
> 
> When I tried with
> 
> scanimage -d 'test:0' --batch="sane-test%d.tiff" --batch-count 1
> --format tiff
> 
> I output image was all black and there was no delay
> 
> I'm thinking I could simulate this using imagemagick's convert program
> and a simple program to copy a bit at a time.

If you look at scanimage --device=test --help, you will see that there
is a delay option (along with almost anything else you need to test your
frontend).

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Supported languages?

2017-09-30 Thread Jeff
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 the de_DE locale is installed, the following should work
(no need to export):

LC_ALL=de_DE LC_MESSAGES=de_DE LC_CTYPE=de_DE LANG=de_DE LANGUAGE=de_DE
scanimage

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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. Is this already built into sane-test backend somehow?

When I tried with

scanimage -d 'test:0' --batch="sane-test%d.tiff" --batch-count 1 --format
tiff

I output image was all black and there was no delay

I'm thinking I could simulate this using imagemagick's convert program
and a simple program to copy a bit at a time.
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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 choose from via

locale -a|grep DE
de_DE.utf8

but I only get english. Have various systems to test from Ubuntu and Fedora
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-29 Thread Jeff Sadowski
Thank you Olaf, :-)

I am developing a php interface I'm calling it php saneng I have it on
bitbucket for now and using proc_open. I will send the signal via
proc_terminate giving it the second option being the signal I want to use.
I had a similar project I got working in the past specifically for my
scanner and I seem to recall I was giving it signal SIGTERM and I think
that was causing issues where as when I would test from the command line
and use ctrl+c it would leave the scanner in a usable state. So now that I
read about what ctrl+c sends (SIGINT) I think it would be better to send
that. Maybe there is something wrong with brothers backend that it prefers
a SIGINT over a SIGTERM. I'll experiment and let you know once I get my
project a little farther along. My similar project I had got working was
destroyed when an upgrade failed and I forgot to back it up. No biggy I
should 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>
> >>> wrote:
> >>> > Is there a good way to stop scanimage?
>
> > Ooooh Ctrl-C sends the INT(-2) signal that is the signal I think I want.
>
> You've already found out how to solve your issue but here are the
> details.
>
> Sending a *single* SIGINT or SIGTERM (and if supported by your system at
> compile time SIGHUP or SIGPIPE) will cancel the scan in progress.  This
> should leave your scanner in a usable state.
>
> Sending one of these signals again will abort the scan in progress (and
> may leave your scanner in an unusable state).
>
> You can send signals with the kill command or via the keyboard.  The
> latter is somewhat key binding dependent but usually Ctrl-C will do the
> Right Thing.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 end sometimes it is nice to
> stop it there. I think I found my issue I may have been sending it the
> wrong signals in the past.
> I may have been sending it a signal 9 vs signal 15.
>
> 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 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 mail with subject "unsubscribe your_password"
>> >  to sane-devel-requ...@lists.alioth.debian.org
>>
>>
>>
>> --
>> "well, I stand up next to a mountain- and I chop it down with the edge
>> of my hand"
>>
>
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-28 Thread Jeff Sadowski
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 end sometimes it is nice to
stop it there. I think I found my issue I may have been sending it the
wrong signals in the past.
I may have been sending it a signal 9 vs signal 15.

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 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 mail with subject "unsubscribe your_password"
> >  to sane-devel-requ...@lists.alioth.debian.org
>
>
>
> --
> "well, I stand up next to a mountain- and I chop it down with the edge
> of my hand"
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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 mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf 1.8.7 released

2017-09-22 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.7:
* + units to scan and edit paper dialogues.
* - unsupported libsane-perl offered as Frontend choice
  Thanks to Chris Mayo for the patch. Closes merge request #19
* Fixed support for Poppler (pdftops) as postscript backend.
  Thanks to Chris Mayo for the patch. Closes merge request #18
* - Reload recursion limit in Edit/Preferences
  Set reload recursion limit as triangular number of number of scan
  options.
  i.e. if there are 5 scan options, the recursion limit is 5+4+3+2+1=15
  Closes bug #275 (reload recursion limit)
* Fixed crash with scanimage frontend due to empty cache
* Ghost save button, rather than hiding save dialogue if all pages
  removed.
  Closes bug #253 (Save dialoque does not stay open)
* Fixed bug causing profile dropdown to be cleared after setting profile
* Filter out integers from tool warnings, analogous to the hex warnings
  from unpaper.
* Fixed visibility of options in save dialogue (again).
* Right mouse click in thumbnail panel makes the page range (e.g. in
  save dialogue) default to "selected".
* Take filename of PDF to email from default filename settings (and
  therefore from metadata). If this produces a blank filename, use
  "document.pdf".
* Fixed bug requiring scan dialog to be requested twice after changing
  frontend
* Update to Hungarian translation (thanks to csola)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 parse the stdout of
>> > "scanimage -h"
>> > Is there a good way to to this with regular expressions or something.
>>
>> If you look at the source of gscan2pdf
>> (https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib
>> /Gscan2pdf/Scanner/Options.pm),
>> the _parse_scanimage_output() method does what you want.
>>
>> Thank you, I understand both well I should have not trouble converting it.
>

Ahh, I see ignore the common options and put them in manually. clear way of
getting around the issue. ;-)

>
>
>> It is written in Perl, but PHP is not very different.
>>
>> Regards
>>
>> Jeff
>>
>>
>> --
>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>  to sane-devel-requ...@lists.alioth.debian.org
>>
>
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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 expressions or something.
>
> If you look at the source of gscan2pdf
> (https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/
> lib/Gscan2pdf/Scanner/Options.pm),
> the _parse_scanimage_output() method does what you want.
>
> Thank you, I understand both well I should have not trouble converting it.


> It is written in Perl, but PHP is not very different.
>
> Regards
>
> Jeff
>
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

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

2017-09-18 Thread Jeff
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 expressions or something.

If you look at the source of gscan2pdf
(https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib/Gscan2pdf/Scanner/Options.pm),
the _parse_scanimage_output() method does what you want.

It is written in Perl, but PHP is not very different.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[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.
I was looking if I had to create my own again or if something is out there.

I couldn't find anything so I went at creating my own again. I am really
satisfied with the way I do my php and having it spawn a separate php job
that runs in the background. I had originally customised mine for my
printer but now I wanted to make it more dynamic since I had to rebuild it
anyways.

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 expressions or something.

I have some ways I'm working on that I keep breaking up the string a bit at
a time but it seems exhausting coming up with a parser for pulling the
command line arguments and available options out of that.

Attached is the stdout output of my "scanimage -h"
My first approach was to go after every line that started with - or space -
As you can see in my attached output that approach won't work.
Any suggestions on how to start? Any suggestions on a place to share my
code with others?
I have just started using git on bitbucket for a class I am taking would
that be a good place?
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE   use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff  file format of output file
-i, --icc-profile=PROFILE  include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
   can be specified: %d (device name), %v (vendor),
   %m (model), %t (type), %i (index number), and
   %n (newline)
-b, --batch[=FORMAT]   working in batch mode, FORMAT is `out%d.pnm' or
   `out%d.tif' by default depending on --format
--batch-start=#page number to start naming files with
--batch-count=#how many pages to scan in batch mode
--batch-increment=#increase page number in filename by #
--batch-double increment page number by two, same as
   --batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only  only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scanonly set options, don't actually scan
-T, --test test backend thoroughly
-A, --all-options  list all available backend options
-h, --help display this help message and exit
-v, --verbose  give even more status messages
-B, --buffer-size=#change input buffer size (in kB, default 32)
-V, --version  print version information

Options specific to device `brother2:bus1;dev1':
  Mode:
--mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color [24bit 
Color]
Select the scan mode
--resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
Sets the resolution of the scanned image.
--source FlatBed|Automatic Document Feeder [Automatic Document Feeder]
Selects the scan source (such as a document-feeder).
--brightness -50..50% (in steps of 1) [inactive]
Controls the brightness of the acquired image.
--contrast -50..50% (in steps of 1) [inactive]
Controls the contrast of the acquired image.
  Geometry:
-l 0..215.9mm (in steps of 0.008) [0]
Top-left x position of scan area.
-t 0..355.6mm (in steps of 0.008) [0]
Top-left y position of scan area.
-x 0..215.9mm (in steps of 0.008) [215.88]
Width of scan-area.
-y 0..355.6mm (in steps of 0.008) [355.567]
Height of scan-area.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
brother2:bus1;dev1
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf 1.8.6 released

2017-08-22 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.6:
* Fixed visibility of options for DjVu, JPEG, & TIFF in save dialogue.
* + Reload recursion limit in Edit/Preferences
  Break of out reload recursion loop if maximum number of reloads is
  exceeded.
* Reapply only those current scan settings that were reset by the reload
* Fixed unpaper detection for v0.3.
  Closes #273 (t/355_unpaper2.t test fails in gscan2pdf-1.8.5)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf 1.8.5 released

2017-08-19 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.5:
* + support for Poppler (pdftops) as postscript backend.
* - support for libsane-perl
* Reapply current scan settings for those scanners that reset them when
  forcing a reload
* Eliminate unnecessary strings from gscan2pdf.pot to prevent
  unnecessary work and confusion on the part of the translators.
* + A3 to default paper sizes
* Update to Hungarian translation (thanks to csola)
* Update to Slovak translation (thanks to Dušan Kazik)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Need Help getting Canon ImageClass MF244dw working

2017-08-08 Thread Jeff
On 08/08/17 21:46, Dave Platt wrote:
> Is it?  The Debian package pages seem to show only various cuts
> of a 1.0.25 version in the testing and unstable distributions
> at this time.  As far as I can tell, there hasn't yet been an

I apologise. I must have picked it up from experimental, instead, where
is really is:

https://packages.debian.org/source/experimental/sane-backends

But working fine here.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Need Help getting Canon ImageClass MF244dw working

2017-08-08 Thread Jeff
On 08/08/17 14:46, Curtis Graham wrote:
> Or instead of using Rolf's repo, maybe there is a more appropriate one
> to use for Debian?

Sure. sane-backends 1.0.27 is in Debian unstable and testing.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.4 released

2017-07-28 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.4:
* Cope with Tesseract 3.0.5 writing Page 1 instead of Page 0
  Thanks to Chris Mayo for the patch. Closes merge request #14
* Assume pixels/inch if the image doesn't know better. Closes bug #258
  (Tesseract 3.05.01: Warning. Invalid resolution 0 dpi. Using 70
  instead)
* Fix paragraph formatting in save as text output.
  Thanks to Chris Mayo for the patch. Closes merge request #16
* In preparation for future removal of libsane-perl frontend, change
  default frontend libsane-perl -> libimage-sane-perl, and similarly
  switch selected frontend on upgrade from older version. Assuming no
  major problems occur, support for libsane-perl will be removed in the
  next release.
* Fixed bug writing postscript file.
* + support for ghostscript backend due to apparent bug in tiff2ps.
* Round scan options with ranges to valid values before applying.
* Fixed bug updating list of option-dependent values. Closes bug #264
  (Effective resolution is 75 DPI despite selecting 600 or 1200).



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf 1.8.3 released

2017-07-01 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.3:
* + libimage-sane-perl frontend
  - scanimage-perl and scanadf-perl frontends
  Closes bug #219 (Rescan for devices not working properly).
* Fixed bug writing multipage hOCR files.
* Fixed bug switching between Tesseract and Cuneiform (particularly for
  German).



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] SANE Perl bindings Image::Sane released

2017-07-01 Thread Jeff
I have written new Perl bindings for the SANE API. Please find them at:

https://metacpan.org/pod/Image::Sane

These Perl bindings for the SANE (Scanner Access Now Easy) Project allow
you to access SANE-compatible scanners in a Perlish and object-oriented
way, freeing you from the casting and memory management in C, yet
remaining very close in spirit to original API.

They are based on, and almost identical to, my original bindings:

https://metacpan.org/pod/Sane

which the CPAN administrators have been asking me to rename for
literally years. I updated the Perl API (for error handling) at the same
time, but Image::Sane is otherwise almost identical to Sane.

Regard

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Multi-page scans

2017-06-29 Thread Jeff
On 29/06/17 09:10, dm...@yahoo.fr wrote:
> Is there a way of setting Xsane to pause between each page of the scan,
> or is there a better way of achieving what I am trying to do?  Thanks.

1. start gscan2pdf
2. set "source" to "flatbed"
3. place the page on the flatbed
4. and click the scan button
5. goto 3. unless all pages have been scanned.
6. click save and select the PDF option.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] ScanSnap S1100 on Linux Mint

2017-06-25 Thread Jeff
On 24/06/17 04:34, Crusader wrote:
> All 3 scanning programs mentioned above now work (on LInux Mint);
> gscan2pdf v1.2.3 offers the best (pdf) image.

That version of gscan2pdf is 3.5 years old. I suggest you upgrade to a
newer version. v1.8.2 was released three weeks ago.

Regards

Jeff




signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.2 released

2017-06-01 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.2:
* Don't ignore warnings from unpaper
* Fix OCR being ghosted when Tesseract is installed.
  Thanks to Chris Mayo for the patch. Closes merge request 13
* + support for scanimage v1.0.27



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.1 released

2017-05-27 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.1:
* Consistently ghost OCR and unpaper tools if the appropriate
  executables are not available. Closes bug #151 (Unpaper detection is
  not handled correctly).
* Fixed display of tesseract error messages, broken by commit
  "Gscan2pdf::Tesseract: support output to stdout instead of temporary
  file"
* Make RTL test work for other versions of ImageMagick.
  Closes bug #246 (t/​357_unpaper_rtl.t test fails).
* Improve support for button-type scan options.
* + icons/gscan2pdf-papyrus.svg for use with Papyrus-like themes.
  Thanks to Chris JC Jones for donating the icon.
* + ppm & pbm extensions to open file chooser.
  Closes bug #252 (Support for pbm nd ppm bitmap formats)
* Fixed multipage scanning for Samsung CLX-4190.
* Change metadata filename codes to use strftime
* Many improvements to the display of OCR output.
  Thanks to Peter Marschall for the patches.
  Closes Debian bug #858767 (fixes & improvements to gscan2pdf)
* Update to Hungarian translation (thanks to csola)
* Update to Traditional Chinese translation (thanks to Po-Hsu Lin)
* Update to Slovak translation (thanks to Dušan Kazik)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Sane backend for Panasonic

2017-05-06 Thread Jeff Breidenbach
See also

https://code.google.com/archive/p/kvss905c/downloads
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] CanoScan Canon Lide 220 with command line

2017-04-19 Thread Jeff
On 19/04/17 12:05, csola48 wrote:
> 2) Conversely! The same scanner, the same genesys backend is out of
> order it xsane, the simple scan, the skanlite/libskane, the gscan2pdf
> with frontends.

I'm not sure what you mean. But if you start gscan2pdf from the command
line with the --log=log option, reproduce the problem, quit, and post
the log file, I'll take a look.

> Ps_1.: There may be in a command line to prepare a *.pdf file?

Not as part of the scan process, but having produced your (even multipage)
tiff, tiff2pdf will do what you want.

Regards

Jeff



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] TIFF to PDF at 300dpi?

2017-04-14 Thread Jeff Breidenbach
leptonica-progs will also do it.
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.0 released

2017-04-12 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.0:
* + "Writing system" option in "Clean Up" (unpaper) dialogue, affecting
  the order in which the pages are imported when scans are split.
  Closes feature request #94
  (add "Deskew", "Descreen", "Split image" to "Save" dialog)
* + support for Tesseract 3.05. Thanks to Chris Mayo for the patch
  Closes bug #243 (tesseract 3.05 OCR Engine not recogized)
* + support for unpaper --no-mask-center option.
  Thanks to Peter Marschall for the patch
* + contrast + brightness tool. Thanks to Peter Marschall for the patch
* + option to convert filename whitespace to underscores.
  Thanks to Peter Marschall for the patch
* Fix crash caused by undefined profiles in .gscan2pdf
  Closes support request #19 (Will not run past crashed session)
* Move config file to use $XDG_CONFIG_HOME or $HOME/.config directory.
  Thanks to Peter Marschall for the patch
* Various cosmetic improvements. Thanks to Peter Marschall for the patches
* Update to Italian translation (thanks to Milo Casagrande)
* Update to Slovak translation (thanks to Dušan Kazik)



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] TIFF to PDF at 300dpi?

2017-04-12 Thread Jeff
On 12/04/17 19:11, Yury Tarasievich wrote:
> On 12/04/17 18:05, Manuel Reiter wrote:
> ...
>> I want to convert a TIFF, scanned at 300 dpi, to a PDF of the same
>> size and dpi. From my searches, this should be achievable both with
>> ImageMagick's "convert" with output
> 
> Try tiff2pdf from LIBTIFF (don't know how to look for the DPI in PDF,
> but the PDF file size is roughly the same as the sum of TIFFs that went
> into it).

tiff2pdf is the quickest way for those who are happy with the command line.

gscan2pdf would also have no problem importing a multipage TIFF and
saving a PDF.

Regards

Jeff




signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.7.3 released

2017-03-12 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.7.3:
* Fixed bug presenting blank scan dialog if no devices found. Closes bug
#241
  (Scan Document window cannot be opened if no scanner was found)
* Fixed bug updating post-save hooks if save dialog already opened.
  Closes Debian bug #756897 (Specify ways to proof-read document post-save)
* Force resolution to be integer for DjVu to prevent errors whilst saving




signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Free to a good dev home (USA) - Visioneer OneTouch 8100 Scanner

2016-12-10 Thread Jeff Hanson
I'm guessing it's Primax.  I did some data captures from WinXP in a VM,
exercising every button along with some test scans including an IT87
calibration target.  Also a OneTouch 9320 scanner with a 35mm
slide/negative scan function (only tested the 35mm backlight since I'm
missing the film templates and it won't scan without them).  Data dumps and
scan PNGs here:

http://www.mediafire.com/file/22yg8tqb17ps9b1/OneTouch_8100.7z
http://www.mediafire.com/file/xgk3387rzgd9pax/OneTouch_9320_USB.7z

IT87 target calibration data:
http://www.mediafire.com/file/03a2590i2zppzas/R141212.zip

I don't need either scanner and will ship them to whoever feels like
working on the SANE driver.  Models from the rest of the product line are
available on eBay.

P.S. If you're wondering why it took 5 years it's because I plugged my
laptop power supply into the scanner by accident and fried it.  It wasn't
until someone gave me another that I remembered to report back on it.

On Mon, Aug 1, 2011 at 1:53 AM, stef <stef@free.fr> wrote:

> Le lundi 1 août 2011 07:11:11 Jeff Hanson, vous avez écrit :
> > I'll pay shipping (USA only) to get it to whoever wants to
> > reverse-engineer the protocol and write a functioning SANE back-end
> > for it.
> >
> > Bus 006 Device 010: ID 04a7:0321 Visioneer OneTouch 8100 EPP/USB Scanner
> > Device Descriptor:
> >   bLength18
> >   bDescriptorType 1
> >   bcdUSB   1.00
> >   bDeviceClass0 (Defined at Interface level)
> >   bDeviceSubClass 0
> >   bDeviceProtocol 0
> >   bMaxPacketSize0 8
> >   idVendor   0x04a7 Visioneer
> >   idProduct  0x0321 OneTouch 8100 EPP/USB Scanner
> >   bcdDevice0.01
> >   iManufacturer   4
> >   iProduct6
> >   iSerial 0
> >   bNumConfigurations  1
> >   Configuration Descriptor:
> > bLength 9
> > bDescriptorType 2
> > wTotalLength   32
> > bNumInterfaces  1
> > bConfigurationValue 1
> > iConfiguration  0
> > bmAttributes 0x40
> >   (Missing must-be-set bit!)
> >   Self Powered
> > MaxPower   48mA
> > Interface Descriptor:
> >   bLength 9
> >   bDescriptorType 4
> >   bInterfaceNumber0
> >   bAlternateSetting   0
> >   bNumEndpoints   2
> >   bInterfaceClass16
> >   bInterfaceSubClass  1
> >   bInterfaceProtocol  0
> >   iInterface  0
> >   Endpoint Descriptor:
> > bLength 7
> > bDescriptorType 5
> > bEndpointAddress 0x81  EP 1 IN
> > bmAttributes2
> >   Transfer TypeBulk
> >   Synch Type   None
> >   Usage Type   Data
> > wMaxPacketSize 0x0040  1x 64 bytes
> > bInterval   0
> >   Endpoint Descriptor:
> > bLength 7
> > bDescriptorType 5
> > bEndpointAddress 0x02  EP 2 OUT
> > bmAttributes2
> >   Transfer TypeBulk
> >   Synch Type   None
> >   Usage Type   Data
> > wMaxPacketSize 0x0040  1x 64 bytes
> > bInterval   0
>
> Hello,
>
> can you try to record USB activity when plugging this scanner and
> doing a
> preview with usbsnoop in case  we may be recognize the underlying protocol
> ?
>
> In the search engine there is the output of sane-find-scanner
> which quite
> old, maybe running the version from SANE 1.0.22 will bring extra data.
>
> Regards,
> Stef
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Fujitsu fi-6240

2016-08-02 Thread Jeff Breidenbach
ZXing extracts data from a barcode image. Nothing more, nothing less.

On Tue, Aug 2, 2016 at 1:23 PM, C Peeters <c...@gxi2016.com> wrote:

> Hi Jeff, all the barcode separation sheet does now is tell the application
> in which folder the PDF file resulting from the scan has to go. Is that the
> kind of thing ZXing does?
>
>
> > On 02 Aug 2016, at 21:15, Jeff Breidenbach <j...@jab.org> wrote:
> >
> > ZXing is the strongest open source barcode parsing library that I know
> about. There's a lot of reasons why it would be hard to integrate, though.
> >
>
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-07-15 Thread Jeff Breidenbach
Very much appreciated.

-Jeff

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] scanimage / tesseract interoperability

2014-07-14 Thread Jeff Breidenbach
Revised so printing filenames to stdout is optional and defaults to off.
The new option is --batch-print. Please consider applying along with
happy-batch-1.1.gz


names-to-stdout-1.4.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-06-17 Thread Jeff Breidenbach
Friendly reminder.

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] scanimage / tesseract interoperability

2014-06-05 Thread Jeff Breidenbach
Is there anything more that I can do to help?

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] scanimage / tesseract interoperability

2014-05-30 Thread Jeff Breidenbach
Thank you for the review, Olaf. I've incorporated both of your suggestions.

Jeff

On Thu, May 29, 2014 at 4:49 PM, Olaf Meeuwissen
olaf.meeuwis...@avasys.jp wrote:

 Jeff Breidenbach writes:

 Are these two patches on track for inclusion?
 What more can I do to help?

 names-to-stdout-1.2.diff.gz
 happy-batch-1.0.diff.gz

 I don't have commit privileges but both look mostly good to me.

 Re: names-to-stdout-1.2.diff.gz, you have

   @@ -2283,19 +2291,27 @@ List of available devices:, prog_name);
   {
 fprintf (stderr, %s: sane_start: %s\n,
  prog_name, sane_strstatus (status));
   - fclose (stdout);
   - break;
   + if (ofp)
   +   {
   + fclose (ofp);
   + ofp = NULL;
   + break;
   +   }
   }

 but shouldn't that break statement stay out of the if-branch?  Looks to
 me like your code has the potential to change program flow.

 Re: happy-batch-1.0.diff.gz, why

   n = batch_start_at + batch_increment

 and not just

   n  batch_start_at

 Hope this helps,
 --
 Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
 FSF Associate Member #1962   Help support software freedom
  http://www.fsf.org/jf?referrer=1962


happy-batch-1.1.gz
Description: GNU Zip compressed data


names-to-stdout-1.3.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Implementation was a little intrusive because there is no recovery
from calling freopen()  on stdout. This preliminary patch follows
the recommendations of the C FAQ and introduces an explicit
stream variable. I've only done light testing.

http://c-faq.com/stdio/undofreopen.html

$ scanimage --batch 2 /dev/null | cat
out1.pnm
out2.pnm

Cheers,
Jeff


--- /tmp/orig/sane-backends-1.0.23/frontend/scanimage.c 2014-05-12
13:44:40.0 -0700
+++ sane-backends-1.0.23/frontend/scanimage.c 2014-05-12
14:17:18.0 -0700
@@ -1124,7 +1124,8 @@
 }

 static void
-write_pnm_header (SANE_Frame format, int width, int height, int depth)
+write_pnm_header (SANE_Frame format, int width, int height, int depth,
+  FILE *ofp)
 {
   /* The netpbm-package does not define raw image data with maxval  255. */
   /* But writing maxval 65535 for 16bit data gives at least a chance */
@@ -1135,20 +1136,20 @@
 case SANE_FRAME_GREEN:
 case SANE_FRAME_BLUE:
 case SANE_FRAME_RGB:
-  printf (P6\n# SANE data follows\n%d %d\n%d\n, width, height,
+  fprintf (ofp, P6\n# SANE data follows\n%d %d\n%d\n, width, height,
   (depth = 8) ? 255 : 65535);
   break;

 default:
   if (depth == 1)
- printf (P4\n# SANE data follows\n%d %d\n, width, height);
+ fprintf (ofp, P4\n# SANE data follows\n%d %d\n, width, height);
   else
- printf (P5\n# SANE data follows\n%d %d\n%d\n, width, height,
+ fprintf (ofp, P5\n# SANE data follows\n%d %d\n%d\n, width, height,
  (depth = 8) ? 255 : 65535);
   break;
 }
 #ifdef __EMX__ /* OS2 - write in binary mode. */
-  _fsetmode (stdout, b);
+  _fsetmode (ofp, b);
 #endif
 }

@@ -1183,7 +1184,7 @@
 }

 static SANE_Status
-scan_it (void)
+scan_it (FILE *ofp)
 {
   int i, len, first_frame = 1, offset = 0, must_buffer = 0, hundred_percent;
   SANE_Byte min = 0xff, max = 0;
@@ -1273,10 +1274,10 @@
 sanei_write_tiff_header (parm.format,
  parm.pixels_per_line, parm.lines,
  parm.depth, resolution_value,
- icc_profile);
+ icc_profile, ofp);
   else
 write_pnm_header (parm.format, parm.pixels_per_line,
-  parm.lines, parm.depth);
+  parm.lines, parm.depth, ofp);
  }
   break;

@@ -1397,7 +1398,7 @@
   else /* ! must_buffer */
 {
   if ((output_format == OUTPUT_TIFF) || (parm.depth != 16))
- fwrite (buffer, 1, len, stdout);
+ fwrite (buffer, 1, len, ofp);
   else
  {
 #if !defined(WORDS_BIGENDIAN)
@@ -1408,7 +1409,7 @@
 {
   if (len  0)
  {
-  fwrite (buffer, 1, 1, stdout);
+  fwrite (buffer, 1, 1, ofp);
   buffer[0] = (SANE_Byte) hang_over;
   hang_over = -1;
   start = 1;
@@ -1429,7 +1430,7 @@
   len--;
 }
 #endif
-  fwrite (buffer, 1, len, stdout);
+  fwrite (buffer, 1, len, ofp);
  }
 }

@@ -1453,10 +1454,10 @@
   if (output_format == OUTPUT_TIFF)
  sanei_write_tiff_header (parm.format, parm.pixels_per_line,
  image.height, parm.depth, resolution_value,
- icc_profile);
+ icc_profile, ofp);
   else
  write_pnm_header (parm.format, parm.pixels_per_line,
-  image.height, parm.depth);
+  image.height, parm.depth, ofp);

 #if !defined(WORDS_BIGENDIAN)
   /* multibyte pnm file may need byte swap to LE */
@@ -1474,11 +1475,11 @@
  }
 #endif

- fwrite (image.data, 1, image.height * image.width, stdout);
+ fwrite (image.data, 1, image.height * image.width, ofp);
 }

   /* flush the output buffer */
-  fflush( stdout );
+  fflush( ofp );

 cleanup:
   if (image.data)
@@ -1714,6 +1715,7 @@
   SANE_Status status;
   char *full_optstring;
   SANE_Int version_code;
+  FILE *ofp;

   atexit (scanimage_exit);

@@ -2236,12 +2238,15 @@
 format = out%d.pnm;
  }

+  if (!batch)
+ofp = stdout;
+
   if (batch)
  fprintf (stderr,
  Scanning %d pages, incrementing by %d, numbering from %d\n,
  batch_count, batch_increment, batch_start_at);

-  else if(isatty(fileno(stdout))){
+  else if(isatty(fileno(ofp))){
  fprintf (stderr,%s: output is not a file, exiting\n, prog_name);
 exit (1);
   }
@@ -2274,7 +2279,11 @@
 {
   fprintf (stderr, Batch terminated, %d pages scanned\n,
(n - batch_increment));
-  fclose (stdout);
+  if (ofp)
+ {
+  fclose (ofp);
+  ofp = NULL;
+ }
   break; /* get out of this loop */
 }
  }
@@ -2294,19 +2303,27 @@
 {
   fprintf (stderr, %s: sane_start: %s\n,
prog_name, sane_strstatus (status));
-  fclose (stdout);
-  break;
+  if (ofp)
+ {
+  fclose (ofp);
+  ofp = NULL;
+  break;
+ }
 }

+
   /* write to .part file while scanning is in progress */
-  if (batch  NULL == freopen (part_path, w, stdout))
+  if (batch)
+ofp = fopen (part_path, w);
+
+  if (batch  ofp == NULL)
 {
   fprintf (stderr, cannot open %s\n, part_path);
   sane_cancel (device);
   return SANE_STATUS_ACCESS_DENIED;
 }

-  status = scan_it ();
+  status = scan_it (ofp);
   if (batch)
 {
   fprintf (stderr, Scanned page %d., n

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Implemented and tested. Please consider for inclusion.


happy-batch-1.0.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Testing found an error path with a double fclose.
Tiny tweak to make that impossible.

-  if (0 != fclose(ofp))
+  if (!ofp || 0 != fclose(ofp))


names-to-stdout-1.2.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-15 Thread Jeff Breidenbach
When I run scanimage on a Fujitsu S1500, the program is a little
unhappy even after normal operation, note the return code.  This
is not great for pipelines. Should I attempt a fix? This is version
1.0.23-3ubuntu3 on the latest Ubuntu release. Sorry, I haven't yet
figured out how to configure a vanilla build of SANE from git to
talk to hardware.

$ scanimage --batch
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
Scanned page 2. (scanner status = 5)
Scanning page 3
scanimage: sane_start: Document feeder out of documents
$ echo $?
7

Second, I'm attaching a slightly newer version of the patch that
emits filenames to stdout. No functional changes, I just tried to
match the surrounding code style a little better. Hopefully I got
the tab situation more or less correct. Does it look good?

$ scanimage --batch
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
out1.pnm
Scanning page 2
Scanned page 2. (scanner status = 5)
out2.pnm
Scanning page 3
scanimage: sane_start: Document feeder out of documents
scanimage: sane_read: Operation was cancelled
Scanned page 3. (scanner status = 2)


names-to-stdout-1.1.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-12 Thread Jeff Breidenbach
Thank you, Allan. Tesseract will also accept image data directly
on stdin, so single scan mode should work just fine.  I think it is
cleaner to use stdout as opposed to stderr for filenames. I will work
on a patch.

There is one possible alternative. Scanimage could emit image data
to stdout using one of the multi-image formats. For example, multi-image
PNM is simply the concatenation of individual PNM files. Let me know if
you prefer that instead.

Cheers,
Jeff
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-11 Thread Jeff Breidenbach
Jeffrey, gscan2pdf is terrific and I expect most users will prefer
the friendly graphical user interface. I would love to compare
notes with you on PDF generation nuances, and also coordinate
with respect to future Tesseract releases.

It's also good have the command line programs connect
together nicely through pipes, in the unix tradition. The
necessary modifications on the Tesseract side are almost
ready, so it is a good time to look at the scanimage side.

Cheers,
Jeff
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-10 Thread Jeff Breidenbach
Thank you Simon, the --batch-script feature looks very flexible.
It almost does the trick:

   scanimage --batch --batch-script (echo) | tesseract - -

Unfortunately, it runs just a little too early. The script executes
just before the temporary image file is renamed. Tesseract
wants to know about the final filename after it exists.

My very first implementation attempt didn't work; the emitted
filename somehow ended up in the image data. Is there a problem
with scanimage writing to standard output?

  if (new_interoperability_feature) fprintf(stdout, %s\n, path);

I ultimately hope to make scanimage and tesseract work
together nicely for everyone. So any suggestions or advice
are appreciated.

Cheers,
Jeff
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Seeking Odd-Page Vertical Flipping to Support ADF-Duplex

2012-05-31 Thread Jeff Rush
I'm working in the sane-epson2 backend, trying to get it to fully
support adf-duplex for scanning both sides of a page, for the Epson
ES-H-300 scanner.

I've just submitted a patch (#313667) to enable the duplexing.  It
works, and now I have a button on XSANE under Advanced Options.  However
the even (backside) page is 180-degrees rotated.

So as I'm looking thru the driver source, I thought I'd ask if there is
a standard configuration/setting in one of the internal data structures
I can use to cause every other page to be vertically flipped?

If not, I'm going to add to the epson2 driver some logic to invoke
sanei_magic_rotate() on the even-numbered pages, conditionally upon
whether the adf-duplex feature is enabled.  It seems this kind of logic
would be useful to others, and perhaps even already in the code someplace.

Suggestions or guidance welcome.

-Jeff



[sane-devel] Hacking genesys to scan kilometers

2011-08-03 Thread Jeff Breidenbach
 ? ? ? ?this is the ways these sensors are built. There are 'dead' pixels at 
 both
 ends. There is nothing you can do with it.

Stef, can you recommend a SANE compatible sensor that goes to the
edge? OptiBook 3600? Something else?



[sane-devel] problem with canoscan 5600F

2010-07-30 Thread Jeff
I also have a 5600f!  Would love to get it working.


x at x:~$ lsusb
Bus 002 Device 003: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
Bus 002 Device 002: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04a9:1906 Canon, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
x at x:~$ lsusb -d 04a9:1906 -v

Bus 001 Device 005: ID 04a9:1906 Canon, Inc. 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass  255 Vendor Specific Class
  bDeviceSubClass   255 Vendor Specific Subclass
  bDeviceProtocol   255 Vendor Specific Protocol
  bMaxPacketSize064
  idVendor   0x04a9 Canon, Inc.
  idProduct  0x1906 
  bcdDevice6.03
  iManufacturer   1 
  iProduct2 
  iSerial 0 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   39
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xc0
  Self Powered
MaxPower   10mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   3
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0001  1x 1 bytes
bInterval   8
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)






[sane-devel] SANE packages PPA?

2009-05-19 Thread Jeff Kowalczyk
It would be very helpful if there were an official PPA for SANE .debs.

Ubuntu 9.04's use of libsane-1.0.19-23ubuntu7 would probably bring a
substantial influx of willing testers with hardware, if there was an easy
way to track 1.0.20 releases with an entry under sources.list.d.

Could the git snapshot machinery be extended to build .debs?
http://www.sane-project.org/snapshots/

Thanks,
Jeff






[sane-devel] SANE packages PPA?

2009-05-19 Thread Jeff Kowalczyk
On Tue, 19 May 2009 09:11:58 -0400, m. allan noah wrote:
 PPA? sources.list.d? Plain English please?

Right, Personal Package Archive, a convention for Ubuntu (and Debian)
users to publish .deb packages on Launchpad. If an individual were
publishing the SANE test packages, a PPA might be a good choice.

But I guess what I really had in mind was an official SANE APT repository,
such as the way WINE publishes their unstable packages:

http://www.winehq.org/download/deb

Thanks,
Jeff




[sane-devel] Git repositories are up

2009-05-04 Thread Jeff Kowalczyk
Julien BLACHE wrote:
  git clone ssh://login at git.debian.org/git/sane/sane-backends.git

 I guess I'm waiting for questions now?

Are the ssh:// urls for committers only?

Should users and packagers use the http:// url forms?

Thanks,
Jeff




[sane-devel] Migrate from CVS to SVN or DVCS?

2008-11-12 Thread Jeff Kowalczyk
m. allan noah wrote:
 we should use a service that alioth provides, and preferably one with
 broad multi-platform support.

I had some time while waiting for git clone cvs sane-backends ;) but I
was pleasantly surprised to find that Alioth supports +1-voted DVCSs:

http://wiki.debian.org/Alioth/Bzr
http://wiki.debian.org/Alioth/Git
http://wiki.debian.org/Alioth/Hg






[sane-devel] scanning doc takes forever

2008-11-07 Thread Jeff
I am trying to scan a complete letter size at 600 dpi on a Canon FB630U 
using Xsane. It started scanning but I gave up waiting after 5 minutes. 
The scan bar steps a little and hesitates, steps a little, hesitates, 
etc, etc.
 Under Windows it take ~1 minute to complete the scan at 600 dpi.

Any way this can be speeded up??

tj




[sane-devel] Force wake/detection of Fujitsu fi-60F (epjitsu) USB-plugged before firmware files installed?

2008-11-06 Thread Jeff Kowalczyk
I am having trouble accessing an epjitsu Fujitsu fi-60F at a remote site.
The scanner was plugged in yesterday, the host PC has not been rebooted,
and I would like to avoid doing that during business hours.

The host PC is Ubuntu 8.10 desktop, libsane-1.0.19-6ubuntu1:

$ scanimage -V
scanimage (sane-backends) 1.0.19; backend version 1.0.19

My user is in the scanner group:

 $ grep scan /etc/group
 scanner:x:105:hplip,(...),myuser

The default package epjitsu.conf is as follows:

 $ cat /etc/sane.d/epjitsu.conf 
 # For scanners connected via USB on a known device (kernel driver):
 #usb /dev/usb/scanner0
 
 # For scanners connected via USB using vendor and device ids (libusb):
 #usb VENDORID PRODUCTID
 
 # NOTE: if you have to add your device here- please send the id and model
 # to the author via email, so it can be included in next version. kitno455 at
 # gmail dot com - with epjitsu in the subject line
 
 # these devices require a firmware file in order to function
 # it can generally be found inside C:\windows\fjsti.cab or
 # C:\windows\fjmini\*.cab
 # open that file and look for a ~65K .NAL file with the scanner's name
 # and copy it someplace sane can reach it. then update the line below.
 # NOTE: the firmware line must occur BEFORE the usb line for your scanner
 
 # Fujitsu fi-60F
 firmware /usr/share/sane/epjitsu/60f_0A00.nal
 usb 0x04c5 0x10c7
 
 # Fujitsu S300
 firmware /usr/share/sane/epjitsu/300_0A00.nal
 usb 0x04c5 0x1156

The firware file is in place, but was not at the time the scanner was
plugged in:

 $ ls -al /usr/share/sane/epjitsu
 total 80
 drwxr-xr-x 2 root root  4096 2008-04-28 13:09 .
 drwxr-xr-x 5 root root  4096 2008-11-06 12:25 ..
 -rw-r--r-- 1 root root 65793 2008-04-28 16:17 60f_0A00.nal

sane-find-scanner finds the device as a USB id, but does not
identify or associate it with the epjitsu backend:

  $ sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

  found USB scanner (vendor=0x04c5, product=0x10c7) at libusb:005:004
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

However, scanimage does not find the device at all:

 $ scanimage -L
 
 No scanners were identified. If you were expecting something different,
 check that the scanner is plugged in, turned on and detected by the
 sane-find-scanner tool (if appropriate). Please read the documentation
 which came with this software (README, FAQ, manpages).

Are there any utilities to force detection and/or waking of this device,
or is my best option to reboot?

Thanks.




[sane-devel] Force wake/detection of Fujitsu fi-60F (epjitsu) USB-plugged before firmware files installed?

2008-11-06 Thread Jeff Kowalczyk
m. allan noah wrote:
 the firmware is loaded when you run scanimage, so a reboot
 should not be required.
 
 SANE_DEBUG_EPJITSU=15 scanimage -L 2fi60.log
 
 and look thru that logfile.

Thanks.

What does 'could not open device: 11' signify?

$ SANE_DEBUG_EPJITSU=15 scanimage -L 2fi60.log
$ cat fi60.log 
[sanei_debug] Setting debug level of epjitsu to 15.
[epjitsu] sane_init: start
[epjitsu] sane_init: epjitsu backend 1.0.10, from sane-backends 1.0.19
[epjitsu] sane_init: reading config file epjitsu.conf
[epjitsu] sane_init: firmware '/usr/share/sane/epjitsu/60f_0A00.nal'
[epjitsu] sane_init: looking for 'usb 0x04c5 0x10c7'
[epjitsu] attach_one: start 'libusb:005:004'
[epjitsu] attach_one: init struct
[epjitsu] attach_one: connect fd
[epjitsu] connect_fd: start
[epjitsu] connect_fd: opening USB device
[epjitsu] connect_fd: could not open device: 11
[epjitsu] connect_fd: finish
[epjitsu] sane_close: start
[epjitsu] teardown_buffers: start
[epjitsu] teardown_buffers: finish
[epjitsu] sane_close: finish
[epjitsu] sane_init: firmware '/usr/share/sane/epjitsu/300_0A00.nal'
[epjitsu] sane_init: looking for 'usb 0x04c5 0x1156'
[epjitsu] sane_init: found 0 scanner(s)
[epjitsu] sane_init: finish
[epjitsu] sane_get_devices: start
[epjitsu] sane_get_devices: finish
[epjitsu] sane_exit: start
[epjitsu] sane_exit: finish





[sane-devel] Force wake/detection of Fujitsu fi-60F (epjitsu) USB-plugged before firmware files installed?

2008-11-06 Thread Jeff Kowalczyk
It appears that 'usermod -a -G scanner myuser' and logging back in isn't
sufficient for scanner access on this system:

$ SANE_DEBUG_EPJITSU=15 sudo scanimage -L 2fi60.log
device `epjitsu:libusb:005:004' is a FUJITSU fi-60F  0A06 scanner





  1   2   >