Open ssherotsky opened 1 year ago
It seems that VueScan is requesting a JPEG image with an unsupported bit depth:
JpegEncoder: bit depth unsupported, aborting
I'll see what I can do.
Thanks! I noticed the high resolution on a previous attempt and lowered it to 1200, 300 and 50 but still did not get an image or any scanner activity.
I'm now allowing 16 bit depth for JPEG images, though the jpeg encoder does not allow it. The actual color depth will be only 8 bit, but it may solve your problem.
Did you try the latest version? Does it work for you? Thanks!
I've successfully compiled the most recent non-free epson driver for the Perfection V600 on Raspbian GNU/Linux 11 (bullseye) and configured SANE to recognize the scanner.
pi@raspberrypi:~ $ sudo -u saned scanimage -L device
epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314' is a EPSON Perfection V600/GT-X820:001:004 flatbed scanner`sudo -u saned scanimage > test.pnm generates a valid image file on the Pi.
With AirSaned running (interactive in debug mode), I see the scanner listed as "EPSON Perfection V600/GT-X820:001:004" on the AirSane server webpage and can generate a preview and successfully scan a file.
My Mac Ventura client is able see the scanner advertised as a Bonjour device and VueScan identifies it successfully through mDNS and I can successfully generate a preview or scan with Image Capture. However, when I click Preview or Scan in VueScan, the debug output (second attempt below) omits the sane_read function, there is no activity on the scanner and no image produced.
I suspect this is a configuration issues since when the daemon is started by systemctl, it does not even recognized the USB connected scanner. That said, the AirSane config files are generic and concatenated below.
I'm happy to post other diagnostics or configurations but not sure what is relevant.
pi@raspberrypi:~ $ sudo /usr/local/bin/airsaned --debug=true --listen-port=8090 git commit: N/A (branch N/A, rev N/A+) build date: 2023-11-08T15:55:40Z start time is 6224.12 reading device options from '/etc/airsane/options.conf' enumerating local devices... sane_init(nullptr, nullptr) sane_get_devices() ... ... sane_get_devices() -> SANE_Status Success sane_exit() found: epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314 (EPSON Perfection V600/GT-X820:001:004) stable unique name: epsonscan2:EPSON Perfection V600/GT-X820:001:004:1 uuid: ae12cc18-535b-5709-bd07-1ce54a506a77 sane_init(nullptr, nullptr) sane_open(epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314) -> 0x7352f728 [source] := "Flatbed" -> reload options sane_close(0x7352f728) sane_exit() published as 'EPSON Perfection V600/GT-X820:001:004' end time is 6226.07 startup took 1.9541 secconds listening on 127.0.0.1:8090 listening on 192.168.1.202:8090 listening on 192.168.1.215:8090 listening on [::1]:8090 listening on [fd75:9fdd:264f::4ac]:8090 listening on [2601:600:827f:a0b2::4ac]:8090 listening on [fd60:8f07:7e2d:0:a959:5055:727:e78b]:8090 listening on [fd75:9fdd:264f:0:50e9:655b:4fa9:1d0b]:8090 listening on [2601:600:827f:a0b2:b686:8d96:3cc4:af7f]:8090 listening on [fe80::caaa:3222:7a1b:dbf0]:8090 listening on [fd75:9fdd:264f::29a]:8090 listening on [2601:600:827f:a0b2::29a]:8090 listening on [fd60:8f07:7e2d:0:b2c2:278b:4e1c:10c7]:8090 listening on [fd75:9fdd:264f:0:4f91:9913:ee78:acf1]:8090 listening on [2601:600:827f:a0b2:dce4:8388:734d:e9b8]:8090 listening on [fe80::3ded:8baa:c7b3:3cf5]:8090 document format requested: image/jpeg document format used: image/jpeg job kind: single using color gamma of 0.555555 sane_init(nullptr, nullptr) sane_open(epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314) -> 0x7080f8d8 [source] := "Flatbed" -> reload options [mode] := "Color" [resolution] := 12800dpi -> reload options [tl-x] := 0mm [tl-y] := 0mm [br-x] := 216mm [br-y] := 279mm sane_start(0x7080f8d8) with options: [br-x] = 216mm [br-y] = 279mm [brightness] = 0 [contrast] = 0 [dropout] = "None" [gamma-correction] = 2.2 [image-count] = 0 [long-paper-mode] = 0 [mode] = "Color" [remove-background] = "None" [resolution] = 12800dpi [rotate] = "0 degrees" [scan-area] = "Manual" [source] = "Flatbed" [text-enhance] = "None" [threshold] = 128 [tl-x] = 0mm [tl-y] = 0mm sane_cancel(0x7080f8d8) sane_cancel(0x7080f8d8) sane_close(0x7080f8d8) sane_exit() document format requested: image/jpeg document format used: image/jpeg job kind: single using color gamma of 0.555555 sane_init(nullptr, nullptr) sane_open(epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314) -> SANE_Status Error during device I/O sane_exit() JpegEncoder: bit depth unsupported, aborting document format requested: image/jpeg document format used: image/jpeg job kind: single using color gamma of 0.555555 sane_init(nullptr, nullptr) sane_open(epsonscan2:Perfection V600/GT-X820:001:004:esci2:usb:ES00A1:314) -> 0x70812e40 [source] := "Flatbed" -> reload options [mode] := "Color" [resolution] := 12800dpi -> reload options [tl-x] := 0mm [tl-y] := 0mm [br-x] := 216mm [br-y] := 279mm sane_start(0x70812e40) with options: [br-x] = 216mm [br-y] = 279mm [brightness] = 0 [contrast] = 0 [dropout] = "None" [gamma-correction] = 2.2 [image-count] = 0 [long-paper-mode] = 0 [mode] = "Color" [remove-background] = "None" [resolution] = 12800dpi [rotate] = "0 degrees" [scan-area] = "Manual" [source] = "Flatbed" [text-enhance] = "None" [threshold] = 128 [tl-x] = 0mm [tl-y] = 0mm sane_cancel(0x70812e40) sane_cancel(0x70812e40) sane_close(0x70812e40) sane_exit()
`pi@raspberrypi:~ $ cat /etc/airsane/options.conf
Example options.conf file for airsane
icon Gnome-scanner.png
location 2nd Floor Office
Compensate for OS-side gamma correction with gamma = 1.8 = 1/0.555555
gray-gamma 0.555555 color-gamma 0.555555
Use synthesized gray when scanning from the genesys backend
device genesys:.* synthesize-gray yes pi@raspberrypi:~ $ cat /etc/airsane/ignore.conf
ignore SANE eSCL backends to avoid loops
escl:. airscan:. pi@raspberrypi:~ $ cat /etc/default/airsane INTERFACE=* LISTEN_PORT=8090 ACCESS_LOG= HOTPLUG=true MDNS_ANNOUNCE=true ANNOUNCE_SECURE=false UNIX_SOCKET= WEB_INTERFACE=true RESET_OPTION=true DISCLOSE_VERSION=true LOCAL_SCANNERS_ONLY=false RANDOM_PATHS=false COMPATIBLE_PATH=true OPTIONS_FILE=/etc/airsane/options.conf IGNORE_LIST=/etc/airsane/ignore.conf`