Re: [sane-devel] pixma backend: -x/y auto advertised but not available / how to crop?

2017-04-28 Thread m. allan noah
That 'auto' string is put there by scanimage, when it finds an option
with the SANE_CAP_AUTOMATIC capability set. Unfortunately, scanimage
has some special handling for the x/y/t/l parameters. It appears that
-l and -t will properly parse the 'auto' string, but -x and -y will
not. This is a bug in scanimage, specifically in parse_vector().

If the pixma devices are unable to detect paper width in hardware, the
SANE_CAP_AUTOMATIC cap should be removed from those options. Or, the
pixma backend could be extended to use sanei_magic library, which
other backends use to add features like deskew and crop.

Outside of modifying sane-backends, you might look at the program
unpaper for post-processing the images.

allan

On Thu, Apr 27, 2017 at 5:05 PM, Manuel Reiter  wrote:
> Nobody? I found this old discussion which seems to suggest the pixma devices 
> don't support auto-detection:
>
> http://lists.alioth.debian.org/pipermail/sane-devel/2009-December/025674.html
>
> If that's indeed the case, may I suggest updating the pixma backend so that 
> it doesn't advertise capabilities that don't exist?
>
> Also, I'd still appreciate suggestion for a scriptable approach to achieve 
> this functionality.
>
> Thanks,
>
>   Manuel
>
> Am 11.04.2017 um 16:44 schrieb Manuel Reiter:
>
>> I'm using saned with a Pixma MP610 all-in-one on a Raspberry Pi 3 running an 
>> up-to-date Rasbian Jessie. scanimage --help shows me the following options 
>> for Geometry:
>>
>> [...]
>> Options specific to device `net:localhost:pixma:04A91725_414EE7':
>> [...]
>>  Geometry:
>>-l auto|0..216.069mm [0]
>>Top-left x position of scan area.
>>-t auto|0..297.011mm [0]
>>Top-left y position of scan area.
>>-x auto|0..216.069mm [216.069]
>>Width of scan-area.
>>-y auto|0..297.011mm [297.011]
>>Height of scan-area.
>> [...]
>>
>> However, trying to actually use "-x auto" results in an error:
>>
>> --snip
>> reiter@hive:~ $ scanimage -d net:localhost:pixma --mode Color \
>> --resolution 300 -l auto -t auto -x auto -y auto > /dev/null
>> scanimage: option --x: bad option value (rest of option: auto)
>> --snip
>>
>> Is this a bug or an error on my part?
>>
>> I intend to use this scanner for a document management system and expect to 
>> scan quite a number of non-full-size documents. If x/y auto is indeed not 
>> available, what would be a good way to automatically crop my scans? The 
>> included (Mac) Software actually does a decent job so it seems to be 
>> possible.
>>
>> Thanks in advance for your answers!
>>
>> Cheers,
>>
>>  Manuel
>>
>> --
>> 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



-- 
"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] adding a timeout for the scanner lamp

2017-04-28 Thread Fred 1

ok,thanks thats really good advice

cheers


On 29/04/17 01:34, m. allan noah wrote:

  The driver (we call them backends) is the only part of sane that
knows the protocol the scanner speaks. So, the backend would have to
be called to perform this task. As an alternative, perhaps the
frontend (xsane in this case) could close the scanner when it is idle,
and re-open it when the user does something. That would in theory work
with all scanners.

allan

On Fri, Apr 28, 2017 at 11:15 AM, Fred 1  wrote:

Mustek BearPaw 2448 TA

does it matter ?

so i should be looking at the driver code?



On 29/04/17 01:11, m. allan noah wrote:

Depends on which scanner you are talking about, which you did not say.

allan

On Fri, Apr 28, 2017 at 10:58 AM, Fred 1  wrote:

i'm not quite familiar with the code yet, but say i want to add a timeout
thingy for the scanner lamp,

normally the lamp turns off when you exit xsane, ok, but failing that
would
like to have a configurable timeout

so i'll take any advice from who is already more familiar with the codes,

thanks



--
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] adding a timeout for the scanner lamp

2017-04-28 Thread m. allan noah
 The driver (we call them backends) is the only part of sane that
knows the protocol the scanner speaks. So, the backend would have to
be called to perform this task. As an alternative, perhaps the
frontend (xsane in this case) could close the scanner when it is idle,
and re-open it when the user does something. That would in theory work
with all scanners.

allan

On Fri, Apr 28, 2017 at 11:15 AM, Fred 1  wrote:
> Mustek BearPaw 2448 TA
>
> does it matter ?
>
> so i should be looking at the driver code?
>
>
>
> On 29/04/17 01:11, m. allan noah wrote:
>>
>> Depends on which scanner you are talking about, which you did not say.
>>
>> allan
>>
>> On Fri, Apr 28, 2017 at 10:58 AM, Fred 1  wrote:
>>>
>>> i'm not quite familiar with the code yet, but say i want to add a timeout
>>> thingy for the scanner lamp,
>>>
>>> normally the lamp turns off when you exit xsane, ok, but failing that
>>> would
>>> like to have a configurable timeout
>>>
>>> so i'll take any advice from who is already more familiar with the codes,
>>>
>>> thanks
>>>
>>>
>>>
>>> --
>>> 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] adding a timeout for the scanner lamp

2017-04-28 Thread m. allan noah
Depends on which scanner you are talking about, which you did not say.

allan

On Fri, Apr 28, 2017 at 10:58 AM, Fred 1  wrote:
> i'm not quite familiar with the code yet, but say i want to add a timeout
> thingy for the scanner lamp,
>
> normally the lamp turns off when you exit xsane, ok, but failing that would
> like to have a configurable timeout
>
> so i'll take any advice from who is already more familiar with the codes,
>
> thanks
>
>
>
> --
> 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] sane-backends release 1.0.26 schedule

2017-04-28 Thread m. allan noah
You can send translations at any time, up to the day of the release.

allan

On Fri, Apr 28, 2017 at 10:20 AM, Yuri Chornoivan  wrote:
> п'ятниця, 28-кві-2017 08:04:55 m. allan noah написано:
>> Ok folks, it's time to get another sane-backends release out the door.
>>
>> Olaf has done a good job of cleaning up our contributors list and
>> curating the bug tracker. However, there are a handful of patches in
>> the bug tracker that could still be applied, once they are reviewed.
>> Also, quite a number of backends that are now unmaintained. So, this
>> is a good time to get involved with sane. If you benefit from this
>> project, and have some programming experience, we could use the help.
>>
>> Schedule:
>>
>> May 7: Feature freeze (only fix bugs and update docs after this date)
>> May 14: Code freeze (only update docs after this date)
>> May 21: Release
>>
>> Any questions or concerns, let me know.
>>
>> allan
>
> Hi,
>
> When is it possible/right to send translation updates?
>
> Thanks in advance for your answer.
>
> Best regards,
> Yuri
>
> --
> 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] sane-backends release 1.0.26 schedule

2017-04-28 Thread Yuri Chornoivan
п'ятниця, 28-кві-2017 08:04:55 m. allan noah написано:
> Ok folks, it's time to get another sane-backends release out the door.
> 
> Olaf has done a good job of cleaning up our contributors list and
> curating the bug tracker. However, there are a handful of patches in
> the bug tracker that could still be applied, once they are reviewed.
> Also, quite a number of backends that are now unmaintained. So, this
> is a good time to get involved with sane. If you benefit from this
> project, and have some programming experience, we could use the help.
> 
> Schedule:
> 
> May 7: Feature freeze (only fix bugs and update docs after this date)
> May 14: Code freeze (only update docs after this date)
> May 21: Release
> 
> Any questions or concerns, let me know.
> 
> allan

Hi,

When is it possible/right to send translation updates?

Thanks in advance for your answer.

Best regards,
Yuri

-- 
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] [PATCH] Include physical resolution (pHYs section) in PNG output.

2017-04-28 Thread Aaron Muir Hamilton
Pleased to make your acquaintance, Olaf.

Thank you for reviewing the patches and taking them upstream, 
I have an equivalent patch for JPEG output on the boil.

Not to put you on the spot, but it seems like a lot of time has passed
since the last release was tagged, despite there apparently being quite
a bit of development since then.

I'm wondering who is empowered to tag a release; I think it would be a
good time to make one. 2015-10-04 was quite a while ago, and I know that
at least Archlinux has a downstream patch (authored in 2013, but not
included in 1.0.25) which seems to be integrated in master. [1]

[1]: 
https://git.archlinux.org/svntogit/packages.git/plain/trunk/segfault-avahi-fix-kodakio.patch?h=packages/sane

おつかれさま。

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