cannot disable JPEG compression when scanning (Deskjet 3520 All-in-one)

Bug #1245578 reported by Znerole
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Ani Balakrishnan
hplip (Ubuntu)
Fix Released
High
Unassigned
Trusty
Won't Fix
High
Unassigned
Utopic
Won't Fix
High
Unassigned

Bug Description

I've already filed a "question" (https://answers.launchpad.net/hplip/+question/238002), but I came to the conclusion it's indeed a bug.

I have a Deskjet 3520 All-in-one and no matter what I do, scans always arrive with JPEG artifacts. For example, with hp-scan, when I disable compression, I get the following error message:

"error: Unable to set option compression to value None"

When running XSane, in the advanced settings menu, I get JPEG as only compression option. Manually setting the compression to "none" in the drc file has no positive effect either. In any case, scans arrive with severe JPEG artifacts.

Used hplip version is 3.13.10 on Kubuntu 13.10. I've attached the output of hp-check.

Revision history for this message
Znerole (lorenz-witte) wrote :
description: updated
Revision history for this message
Znerole (lorenz-witte) wrote :

Obviously, RAW scanning is completely disabled on purpose. In ledm.c I found the following in function set_scan_mode_side_effects:

   switch (scanMode)
   {
      case CE_K1: /* same as GRAY8 */
      case CE_GRAY8:
      case CE_COLOR8:
      default:
// ps->compressionList[j] = STR_COMPRESSION_NONE;
// ps->compressionMap[j++] = SF_RAW;
         ps->compressionList[j] = STR_COMPRESSION_JPEG;
         ps->compressionMap[j++] = SF_JPEG;
         ps->currentCompression = SF_JPEG;
         ps->option[LEDM_OPTION_JPEG_QUALITY].cap |= SANE_CAP_SOFT_SELECT; /* enable jpeg quality */
         break;
   }

Obviously, anything other than JPEG is disallowed. Enabling these two lines lets me select compression "none" without problems, but I still get the JPEG artifacts.

Revision history for this message
Znerole (lorenz-witte) wrote :

This seems to be a duplicate to https://bugs.launchpad.net/hplip/+bug/1099322 and https://bugs.launchpad.net/hplip/+bug/1206292.

Actually, I think this issue is pretty bad as it will make me return my hardware.

Revision history for this message
Znerole (lorenz-witte) wrote :

Btw, if this is SW fixable, I'm willing to help, but I need some pointers what to do.

Revision history for this message
Maarten Deprez (deprez-maarten) wrote :

Hi, i succeeded to enable raw scanning on my HP Deskjet 4615 with this patch. The solution seems to be pretty generic, but there might be good (as opposed to "good") reasons it is disabled by default. Maybe it gives unexpected results with some hardware. Also, it gets a bit "quick and dirty" in the function that calculates line sizes (i had to disable the "given" values in favour of the "guessed" (and more correct) ones), but at least it works fine for me.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "hplip-raw-scanning.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Luboš Doležel (lubos-dolezel) wrote :

Maarten's patch wasn't working for me, but I've debugged the code and figured out the remaining issues. A patch is attached.

Revision history for this message
Luboš Doležel (lubos-dolezel) wrote :

Sorry for spamming, but my previous patch was still guesswork and worked only with a single resolution.

This new patch now uses values from scanner responses and seems to be fully functional. Enjoy.

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

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

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To the HPLIP developers at HP: This seems to be an upstream bug, can you apply the suggested patch (comment #8) to the upstream code? Thanks.

Changed in hplip (Ubuntu):
status: Confirmed → Triaged
Changed in hplip:
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Applied the patch to the HPLIP package in Vivid. Thank you very much for the patch.

Changed in hplip (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.15.2-0ubuntu3

---------------
hplip (3.15.2-0ubuntu3) vivid; urgency=low

  * debian/patches/hpscan-deskjet-3520-aio-allow-non-jpeg-scanning.patch:
    Allow non-JPEG scanning on the HP DeskJet 3520 All-in-One and similar
    devices. Thanks to Lubos Dolezel for the patch (LP: #1245578).
 -- Till Kamppeter <email address hidden> Mon, 2 Mar 2015 17:48:00 +0100

Changed in hplip (Ubuntu):
status: Fix Committed → Fix Released
Changed in hplip:
assignee: nobody → Ani Balakrishnan (anib)
Revision history for this message
Anders Østerholt (diebels) wrote :
Micah Gersten (micahg)
Changed in hplip (Ubuntu Trusty):
status: New → In Progress
assignee: nobody → Micah Gersten (micahg)
Changed in hplip (Ubuntu Utopic):
status: New → In Progress
assignee: nobody → Micah Gersten (micahg)
Changed in hplip (Ubuntu Trusty):
importance: Undecided → High
Changed in hplip (Ubuntu Utopic):
importance: Undecided → High
Micah Gersten (micahg)
Changed in hplip (Ubuntu Trusty):
status: In Progress → Fix Committed
assignee: Micah Gersten (micahg) → nobody
Revision history for this message
Micah Gersten (micahg) wrote :

SRU packages uploaded to trusty and utopic with patch from vivid

Changed in hplip (Ubuntu Utopic):
assignee: Micah Gersten (micahg) → nobody
status: In Progress → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Znerole, or anyone else affected,

Accepted hplip into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.3-0ubuntu3.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Chris J Arges (arges) wrote :

Could someone fill in the SRU template in this bug please? Thanks

Revision history for this message
Chris J Arges (arges) wrote :

Hello Znerole, or anyone else affected,

Accepted hplip into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.6-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
elfantin (mikspace-ubuntu) wrote :

Didn't work for me with HP Officejet Pro 8610; I'm on Mint 17.1 Rebecca (based on 14.04).
I had hplip 3.15.4. I upgraded (hp-upgrade) to 3.15.6. No improvement on the jpeg front. So uninstalled it (hp-uninstall), installed hplip from standard repos. Still no improvement.
So I activated trusty-proposed and installed:
sudo apt-get install hplip/trusty-proposed
sudo apt-get install printer-driver-postscript-hp/trusty-proposed
sudo apt-get install hplip-gui/trusty-proposed

Now xsane wouldn't see the scanner at all.

I tried some hp- commands (hp-setup , hp-doctor , hp-scan , hp-uninstall) but they give errors (such as ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: hpmud_make_par_uri).

I've now removed the packages from -proposed and put back 3.15.6 (with ongoing jpeg problem).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : [hplip/trusty] possible regression found

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1479555 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and tag 1479555 "bot-stop-nagging". Thanks!

tags: added: verification-failed
tags: added: bot-stop-nagging
removed: verification-failed
tags: removed: bot-stop-nagging
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1480032 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and tag 1480032 "bot-stop-nagging". Thanks!

tags: added: verification-failed
tags: added: bot-stop-nagging
removed: verification-failed
tags: added: verification-failed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Removed "verification-failed" tag as it was added without any comment.

Please check the bots whether they behave correctly.

tags: removed: verification-failed
Revision history for this message
Micah Gersten (micahg) wrote :

Utopic is now EOL and will no longer receive updates

Changed in hplip (Ubuntu Utopic):
status: Fix Committed → Won't Fix
Revision history for this message
Micah Gersten (micahg) wrote :

New version uploaded to trusty-proposed after security update

Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Znerole, or anyone else affected,

Accepted hplip into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.3-0ubuntu3.5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : [hplip/trusty] possible regression found

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1506230 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and add the tag "bot-stop-nagging" to bug 1506230 (not this bug). Thanks!

tags: added: verification-failed
tags: removed: verification-failed
Mathew Hodson (mhodson)
Changed in hplip (Ubuntu):
importance: Undecided → Critical
importance: Critical → High
tags: added: saucy
removed: artifacts bot-stop-nagging jpeg
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1511110 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and add the tag "bot-stop-nagging" to bug 1511110 (not this bug). Thanks!

tags: added: verification-failed
Revision history for this message
Martin Pitt (pitti) wrote : Proposed package removed from archive

The version of hplip in the proposed pocket of Trusty that was purported to fix this bug report has been removed because the bugs that were to be fixed by the upload were not verified in a timely (105 days) fashion.

Changed in hplip (Ubuntu Trusty):
status: Fix Committed → Won't Fix
tags: removed: verification-needed
Revision history for this message
dmucho (vleett) wrote :

Similar issue:

Bug #1938609 “Not possible to scan without ugly JPEG artifacts” : Bugs : HPLIP
https://bugs.launchpad.net/hplip/+bug/1938609

Any hope it will be fixed upstream after 8 years? HP, guys?

Revision history for this message
Johnny Nielsen (johnny1000) wrote :

Still a problem.
Arch Linux + HPLIP 3.22.10
Photosmart 5520
Photosmart 6520

At this point in time HPLIP does not include a quality settings value (gone ages ago), changing the .drc file does nothing (it's overwritten with the JPEG setting), xsane advanced settings includes only JPEG compression (no "none" option), and hp-scan --compression=none reports "error: Unable to set option compression to value None"

A patch was posted 2015-02-28:
https://bugs.launchpad.net/hplip/+bug/1245578/+attachment/4330834/+files/hpscan-final.patch

@HP: Please apply upstream.

Debian and Ubuntu users (and perhaps users of other Debian derived distros), would not see this problem since shortly after the patch was posted, because both Debian and Ubuntu have taken it upon themselves to apply the patch (it has _not_ been applied upstream).

However, users of other distros are not so lucky (e.g. users of OpenSuse, Fedora and Manjaro).

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

Other bug subscribers

Bug attachments

Remote bug watches

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