I tried to fix sane backend for m1005/m1120. But I only have access to my m1005.
Need someone else with m1005/m1120 to check that my fix works.
MR:
https://gitlab.com/sane-project/back...e_requests/819 (already merged to upstream)
Here is a compiled backend for amd64:
https://gitlab.com/tarwirdur/sane-backends/-/issues/1
PHP Code:
$ scanimage -L # list devices
$ SANE_DEBUG_HPLJM1005=101 scanimage -d 'hpljm1005:libusb:XXX:YYY' --format=jpeg --resolution 75 -o /tmp/scan.jpeg # replace XXX:YYY with your device bus:num from previous command
With old sane you should receive an error and a broken file. With the fix - the correct file.