sbs20 / scanserv

scanserv is a simple web-based UI for SANE which allows you to share a scanner on a network.
GNU General Public License v2.0
41 stars 13 forks source link

Modify default parameters #12

Open GG700 opened 5 years ago

GG700 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Hi Sam,

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

Jerome

GG700 commented 5 years ago

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 commented 5 years ago

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