Xsane will not scan complete document in "lineart" mode

Bug #1628150 reported by William T. Lowther
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xsane (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 16.04.1
Xsane .999
Scanner is All-in-1 HP Photosmart 6520
Scanning function operates normally when the scan mode in the main window is set at either Color or Gray. With scan mode at Lineart, the "Preview" function shows the complete document, but when "Scan" is selected the scan bar travels a very short distance and returns to its normal docking position. The resultant image shows only the top 5-10% of the document. The window left of the "Scan" button, showing the size of the image, always shows 1MB for the Lineart scan, but 24 MB for a Color scan (either PNG or JPEG).

Output of:
$ hp-scan -m lineart -r 100 -o tempa.png
HP Linux Imaging and Printing System (ver. 3.16.3)
Scan Utility ver. 2.2

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device hpaio:/usb/Photosmart_6520_series?serial=TH32B1109805TZ
Opening connection to device...

Resolution: 100dpi
Mode: lineart
Compression: JPEG
Scan area (mm):
Top left (x,y): (0.000000mm, 0.000000mm)
Bottom right (x,y): (215.900009mm, 297.010681mm)
Width: 215.900009mm
Height: 297.010681mm
Destination(s): file
Output file: /home/bill/tempa.png

Warming up...

Scanning...
Reading data: [************************************************** ************************************************** *********************************] 100% 122.2 KB
Read 122.2 KB from scanner.
error: Did not read enough data from scanner (I/O Error?)
Closing device.
END

Note that there is no file generated for "tempa.png".
Also, the above command for mode gray or color successfully scans the entire document.

Lastly, the output of the following terminal command successfully scans the complete document for modes lineart, color, and gray:

$ scanimage -d hpaio:/usb/Photosmart_6520_series?serial=TH32B1109805TZ --resolution 300 --mode lineart -x 215 -y 295 > filename.pbm

Bill

Tags: lineart xsane
Revision history for this message
Chris Hayes (chris-hayes) wrote :

Same for me.

Kbuntu 16.04
OfficeJet Pro 8500

Purged and deleted ~/sane/xsane/

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xsane (Ubuntu):
status: New → Confirmed
Revision history for this message
Yves Lejeune (yl31) wrote :

Same problem with HP Deskjet 1050A.
I was successfully using "lineart" mode with xsane since mid-2015, I discovered the bug on the first days of year 2017, probably after installing a few monthes of packages updates.
Now I have to fall back to command-line "scanimage" and then convert tiff to pdf.

Revision history for this message
Ken Cox (kencox1) wrote :

I'm experiencing this problem as well.
Printer: HP Officejet Pro 8720.
error: Did not read enough data from scanner (I/O Error?)

Anyone found a solution yet?

Revision history for this message
Braden Walters (meoblast001) wrote :

I can confirm that this problem still exists on Kubuntu 21.04 with an HP Deskjet 1050A.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.