[WIA/TWAIN] Support of mode=LineArt and mode=Gray
Only default mode (Color) works, both LineArt and Gray raises the error below.
Setting mode to LineArt
- Old mode: Color
- Allowed values: ['LineArt', 'Gray', 'Color', 'palette']
- Set flags: <flags 0 of type Libinsane.SetFlag>
- New mode: LineArt
Scanning ...
error: ../subprojects/libinsane/src/bmp.c:L73(lis_bmp2scan_params): BMP: Unexpected nb bits per pixel: 1 (0x1)
Traceback (most recent call last):
File "subprojects/libinsane-gobject/examples/scan.py", line 248, in <module>
main()
File "subprojects/libinsane-gobject/examples/scan.py", line 241, in main
scan(source, output_file)
File "subprojects/libinsane-gobject/examples/scan.py", line 127, in scan
session = source.scan_start()
gi.repository.GLib.Error: libinsane-quark: Libinsane item->scan_start() error: 0x60000000, LibInsane internal error: Image format not supported (please report !) (11)