You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 27, 2020. It is now read-only.
Traceback (most recent call last):
File "scan.py", line 57, in
maxxr = etree.ETXPath("//{%s}MaxOpticalXResolution" % scanns)(tree)[0].text
IndexError: list index out of range
Apparently that device uses a different syntax to list the supported resolutions.
You'll need to parse the DiscreteResolution tags in a similar way. That is likely the better approach ti using MaxOpticalXResolution.
I'd say it is about 30 minutes of programming effort to get this working on that scanner, too - if you have access to the device so you can test your efforts.
Remember that my script is just a proof of concept. A refined, user-friendly solution should be added to SANE instead, to make this accessible from within applications such as GIMP easily.
Activity
kno10 commentedon Jul 27, 2019
Apparently that device uses a different syntax to list the supported resolutions.
You'll need to parse the DiscreteResolution tags in a similar way. That is likely the better approach ti using MaxOpticalXResolution.
I'd say it is about 30 minutes of programming effort to get this working on that scanner, too - if you have access to the device so you can test your efforts.
Remember that my script is just a proof of concept. A refined, user-friendly solution should be added to SANE instead, to make this accessible from within applications such as GIMP easily.