sbs20 / scanservjs

SANE scanner nodejs web ui
https://sbs20.github.io/scanservjs/
GNU General Public License v2.0
769 stars 146 forks source link

Handle source specific options in `scanimage` #510

Open sbs20 opened 1 year ago

sbs20 commented 1 year ago

Scanimage can report different settings according to the source selected. See https://github.com/sbs20/scanservjs/issues/401#issuecomment-1367951694.

The likely solution will be to run scanimage -A once, find the sources and then iterate over them with scanimage -A --source ${source}, perhaps generating additional virtual devices. This will need to be back-tested across as many scanners as possible.