[sane-devel] scanimage producing invalid image files

David Gersic info at zaccaria-pinball.com
Wed Apr 10 02:03:49 BST 2019


Hi, new here, looking for help with a problem. I don't know what might
be needed to troubleshoot, so here's what I have:

dgersic at farfalla:~> scanimage -L
device `hpaio:/usb/HP_OfficeJet_Pro_8710?serial=CN8CBDT2CW' is a
Hewlett-Packard HP_OfficeJet_Pro_8710 all-in-one

dgersic at farfalla:~> scanimage -T
scanimage: scanning image of size 637x877 pixels at 1
bits/pixel scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 80 bytes...	PASS
scanimage: reading one byte...		PASS
scanimage: stepped read, 2 bytes... 	PASS
scanimage: stepped read, 4 bytes... 	PASS
scanimage: stepped read, 8 bytes... 	PASS
scanimage: stepped read, 16 bytes... 	PASS
scanimage: stepped read, 32 bytes... 	PASS
scanimage: stepped read, 64 bytes... 	PASS
scanimage: stepped read, 128 bytes... 	PASS
scanimage: stepped read, 127 bytes... 	PASS
scanimage: stepped read, 63 bytes... 	PASS
scanimage: stepped read, 31 bytes... 	PASS
scanimage: stepped read, 15 bytes... 	PASS
scanimage: stepped read, 7 bytes... 	PASS
scanimage: stepped read, 3 bytes... 	PASS

dgersic at farfalla:~> scanimage -V
scanimage (sane-backends) 1.0.27; backend version 1.0.27


If I scan a page with:

scanimage --format=pnm --mode Color --source ADF --resolution 300 -l 0
-t 0 -x 215.9 -y 279.5

The resuling pnm file seems to be corrupt. Neither ImageMatick convert
nor Gnome's viewer is happy with the file. Gimp will import it, and can
re-save it as a working pnm file (same for PNG and JPG), which then
convert is happy with.

I can provide examples of "bad" and  "good" files if that would help.




More information about the sane-devel mailing list