I forgot to do the scans with hp-scan, but hopefully this helps more ;)
The attached patch fixes the wrong number of bytes per line in line-art mode for me at least. From the code it looks like the ppb->bytes_per_line comes from somewhere else, so it could be that a fix could be applied where that variable is set, but I'm not so familiar with the hpaio backend and I only have one old HP scanner.
I have tested that the same code path also still works for 8-bit/color mode.
If you still want images or debug runs I can provide them too.
Hi,
I forgot to do the scans with hp-scan, but hopefully this helps more ;)
The attached patch fixes the wrong number of bytes per line in line-art mode for me at least. From the code it looks like the ppb->bytes_per_line comes from somewhere else, so it could be that a fix could be applied where that variable is set, but I'm not so familiar with the hpaio backend and I only have one old HP scanner.
I have tested that the same code path also still works for 8-bit/color mode.
If you still want images or debug runs I can provide them too.
Regards,
Kåre