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

scanimage appends log to output image when used via sane-airscan #164

Open
ericschdt opened this issue Aug 5, 2021 · 0 comments
Open

scanimage appends log to output image when used via sane-airscan #164

ericschdt opened this issue Aug 5, 2021 · 0 comments

Comments

@ericschdt
Copy link

ericschdt commented Aug 5, 2021

I am not sure whether this is an issue of airscan or of scanimage. Apologies in beforehand if I'm wrong now. :)

Setup:

  • System: Fedora 34
  • sane-airscan: 0.99.26 (release 1.fc34)
  • sane-backends 1.0.32
  • Printer: Kyocera ECOSYS M6526cdn
    • eSCL: On
    • eSCL over SSL: Off
    • WSD-Scan: On

Issue

After I have worked around the bug(?) in #163 using plain eSCL, I could finally scan successfully using XSane and simplescan, however using scanimage as suggested by the manual:

scanimage -x 100 -y 100 --format=jpeg >image.jpeg 

did not produce something useful.

Result

image.jpeg: image

i.e. the output log of the command was appended at the beginning of the output file, which you can see, when you open it with a text or hexeditor:

API: sane_init(): called
loading configuration file /etc/sane.d/airscan.conf
MDNS: AVAHI_CLIENT_S_RUNNING
WSDD: netif addresses update:
WSDD:  + 192.168.178.45
WSDD:  + [IPv6]:acd8%3
WSDD: 192.168.178.45: started discovery, UDP port=56729
WSDD: [IPv6]: started discovery, UDP port=37813
API: sane_get_devices(): called
zeroconf: zeroconf_device_list_get: requested
zeroconf: device_list wait: requested
zeroconf: device_list wait: DNS-SD not finished...
(...)

followed by some garbage (couldn't find the jpeg header) and finally at the end of the file you find the log again.
Same issue for the tiff and pnm format.

Traces

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

1 participant