Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make available buttons and sliders depending on scanner #4

Closed
apfeiffe opened this issue Feb 6, 2017 · 2 comments
Closed

Make available buttons and sliders depending on scanner #4

apfeiffe opened this issue Feb 6, 2017 · 2 comments

Comments

@apfeiffe
Copy link

apfeiffe commented Feb 6, 2017

Sam,

may I ask you to make the available buttons and sliders dependend on the output of scanimage -A?
For example:

[scanservjs@scanprint ~]$ /usr/bin/scanimage -A

All options specific to device epson2:libusb:001:006:
Scan Mode:
--mode Lineart|Gray|Color [Lineart]
Selects the scan mode (e.g., lineart, monochrome, or color).

[...]

--brightness 0..0 [inactive]
Selects the brightness.
--sharpness -2..2 [inactive]

Otherwise the command will fail with something like:

scanimage: attempted to set inactive option brightness

Thanks,
Andy

@sbs20
Copy link
Owner

sbs20 commented Feb 6, 2017

Hey Andy,

That's a good idea! I will look into it and make it happen

Sam

@sbs20
Copy link
Owner

sbs20 commented Nov 4, 2017

I've added a new feature with device detection using scanimage -A as per your suggestion. Scanservjs now checks to see if a feature is allowed before using it. Currently implemented for brightness, contrast and depth. What is not yet implemented is anything in the user interface to stop users wasting their time with it.

@sbs20 sbs20 closed this as completed Nov 4, 2017
sbs20 pushed a commit that referenced this issue Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants