I was pretty amazed when the KDE printer handling automagically detected my OfficeJet connected over ethernet - and it was ready for printing. wow!
But not only printing. I was even more astonished when I started
Kooka and it listed the the OfficeJet as network scanner. how cool is that?
Well, unfortunately HP seems to have JPEG compression enabled by default. yuck.
I haven't found a way to access advanced settings of the SANE scanner backend through Kooka or XSane, but the good old commandline tool "scanimage" comes to the rescue!
First: find your scanner:
Code:
scanimage --list-devices
This will return all scanners found attached to your system. In my case it looked like this:
Quote:
device `hpaio:/net/Officejet_6300_series?ip=192.168.x.x' is a Hewlett-Packard Officejet_6300_series all-in-one
Then get a list of advanced settings for your model:
Quote:
scanimage -d hpaio:/net/Officejet_6300_series?ip=192.168.x.x --help
Which, for the OfficeJet looks like this:
Quote:
Options specific to device `hpaio:/net/Officejet_6300_series?ip=192.168.1.51':
Scan mode:
--mode Lineart|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--resolution 75..600dpi [75]
Sets the resolution of the scanned image.
Advanced:
--contrast 0..100 [inactive]
Controls the contrast of the acquired image.
--compression None|JPEG [JPEG]
Selects the scanner compression method for faster scans, possibly at
the expense of image quality.
--jpeg-quality 0..100 [10]
Sets the scanner JPEG compression factor. Larger numbers mean better
compression, and smaller numbers mean better image quality.
--batch-scan[=(yes|no)] [no]
Enables continuous scanning with automatic document feeder (ADF).
--source Auto|Flatbed|ADF [Auto]
Selects the scan source (such as a document-feeder).
Geometry:
--length-measurement Unknown|Approximate|Padded [Padded]
Selects how the scanned image length is measured and reported, which
is impossible to know in advance for scrollfed scans.
-l 0..215.9mm [0]
Top-left x position of scan area.
-t 0..381mm [0]
Top-left y position of scan area.
-x 0..215.9mm [215.9]
Width of scan-area.
-y 0..381mm [381]
Height of scan-area.
Great! There's a line for setting the compression:
Quote:
--compression None|JPEG [JPEG]
As you can see, the default is "JPEG".

Now you can scan it as a 300dpi, uncompressed TIFF image like this:
Code:
scanimage -d hpaio:/net/Officejet_6300_series?ip=192.168.x.x --compression=None --format=tiff --resolution=300 > imagefile.tiff
That did the trick for disabling the ugly JPEG compression artifacts, but I've got strange interlaced-looking stripes in the scan. Haven't figured out where they come from, but that's another issue.