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

Modify default parameters #12

Open
GG700 opened this issue Jul 6, 2019 · 4 comments
Open

Modify default parameters #12

GG700 opened this issue Jul 6, 2019 · 4 comments

Comments

@GG700
Copy link

GG700 commented Jul 6, 2019

Hi !

I would like to modify the default parameters.

Now, there are by exemple with Mode = Lineart but I would like Mode = Color.

Idem for Resolution...

How can I modify the default parameters ?

Best regards,
Jerome

@sbs20
Copy link
Owner

sbs20 commented Jul 7, 2019

Hi Jerome,

It's ages since I've looked at this code. I've just had a good look through and I don't think it's currently possible as it's reading options from the device config dynamically. As I recall, there are defaults specified in the config (which is the result of scanimage -a) but they may not be the defaults you want. There isn't a mechanism to allow you to set defaults at the moment.

However, I seem to recall that the page will save your last selections in local storage in the browser. So once you've set them it should remember them. I don't have my scanner set up at the moment so can't test, but it attempts to load from storage here.

Sorry not to be of more help.

Sam

@GG700
Copy link
Author

GG700 commented Jul 7, 2019

Hi Sam,

Unfortunatly, when I recall the page, the parameters are not remembered.
Thank you for your quick reply,

Jerome

@GG700
Copy link
Author

GG700 commented Aug 20, 2019

Hi Sam.

I just discovered that scanservjs is a new version.
Is this new version resolve the " problem " of default parameters ?

Best regards,
jerome

@sbs20
Copy link
Owner

sbs20 commented Sep 23, 2019

Hi Jerome,

The behaviour is probably the same as scanserv. It adopts the same approach in allowing you to update your settings which it should save as new defaults in local storage. It might work as it's different code, but then again it might not. Sorry for not being more helpful.

Sam

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