After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604465 - Cannot print if color profile is enabled
Cannot print if color profile is enabled
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.6.x
Other Linux
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 600257 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-12-13 18:57 UTC by Ricardo M. Costa
Modified: 2010-01-04 19:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the image that prints instead of my photos (10.32 KB, image/png)
2009-12-13 18:57 UTC, Ricardo M. Costa
  Details
output from "f-spot --debug" in terminal (14.91 KB, text/plain)
2009-12-15 20:05 UTC, Ricardo M. Costa
  Details
possible solution (947 bytes, patch)
2009-12-27 12:59 UTC, Maxxer
none Details | Review
Scanned fspot with color profile printout (131.49 KB, image/jpeg)
2010-01-02 18:44 UTC, Pascal de Bruijn
  Details
Printer (ICC) Color Profile: HP Photosmart C6280 with Sihl Quick Dry Satin 280gsm paper (83.68 KB, application/octet-stream)
2010-01-03 17:41 UTC, Pascal de Bruijn
  Details

Description Ricardo M. Costa 2009-12-13 18:57:25 UTC
Created attachment 149644 [details]
the image that prints instead of my photos

Instead of printing the selected image, F-Spot prints an "image missing" icon, I believe the one from the Oxygen theme set, "status" group. There is some sort of disconnect between F-Spot and the printer. Other image apps (g-thumb, gimp, gqview, etc.) will print the images OK, but with absurdly large borders, as though they are printing documents instead of photos on photo paper. So, at least I do not think that CUPS or HPLIP are the issues.

I'm on Ubuntu 9.10, using F-Spot version 0.6.1.5, and my printer is an HP Photosmart C5180 All-in-One. I should mention that this same printer and same computer worked fine printing photos before the upgrade to Koala (although I cannot say that this was the definitive change... only that at some point during jaunty all was well.)

Thank you for your attention to this.
Comment 1 Maxxer 2009-12-15 14:27:28 UTC
do you have your pics on external media?
are they available to f-spot when you issue the print command (i.e. you can see them in edit view, fullscreen)?

in case both answers are positive, please run f-spot --debug from command line and attach the output to the bug.
(if you don't want to waste paper and ink print to cups-pdf)
Comment 2 Ricardo M. Costa 2009-12-15 20:05:41 UTC
Created attachment 149796 [details]
output from "f-spot --debug" in terminal
Comment 3 Ricardo M. Costa 2009-12-15 20:06:11 UTC
No, the pictures in question have been uploaded to my hard drive, via F-Spot, which can definitely display, crop, rotate, annotate, and do just about everything but print or print preview. Other apps, as I said, can also print the images, just not to my liking.

I've checked the permissions on the file, its folder, and all of the folders leading to it from home; I own all of them, and others have access, so that should not be a problem.

I'm attaching the output from the debug command. I think the telling line is: "[Warn  11:54:55.101] Unable to load image file:///home/ricardo/Photos/2009/12/11/dscn0128 (Modified).jpg"
Comment 4 Maxxer 2009-12-16 07:35:48 UTC
it fails when applying Color Profile. Do you have a printer color profile enabled in preferences?
if so, try disabling it.

(when you reply, remove the needinfo)
Comment 5 Ricardo M. Costa 2009-12-17 01:31:52 UTC
That did it. Both display and print were set to sRGB. I've disabled both. May I ask exactly what I would require for them to work for printing? How do you think they got set to sRGB if this doesn't work with my system?

I've set the bug to "Resolved" and "notabug". Please let me know if this is correct. Thank you.
Comment 6 Maxxer 2009-12-17 16:30:15 UTC
no, this IS a bug. color profiles are there to be used :)
Comment 7 Maxxer 2009-12-27 12:59:07 UTC
Created attachment 150447 [details] [review]
possible solution

the bug is triggered by img.GetProfile () which returns null. This is passed to the CMS Transform method which doesn't check nullity, causing error in image transformation.

patch is a possible solution.
Comment 8 Pascal de Bruijn 2010-01-02 12:02:58 UTC
I've patched the Ubuntu f-spot package with this patch, and made it available on my PPA:

  https://launchpad.net/~pmjdebruijn/+archive/ppa

Since I have color profiles for my printer as well I'll test the patch and report back in a few days.

Meanwhile others can test as well, since now there's a nicely patched package available :)
Comment 9 Pascal de Bruijn 2010-01-02 18:44:40 UTC
Created attachment 150693 [details]
Scanned fspot with color profile printout

I just tried the proposed patch, but the printout got really odd. I attached a scan.

So either the patch isn't any good, or my profile is broken.

Can anybody else test this and report their findings?
Comment 10 Pascal de Bruijn 2010-01-02 23:16:20 UTC
Btw, I have used this feature in the past (using F-Spot 0.5.x), so I'm wondering at what time this broke? Maybe it's just a question of reverting a past change?
Comment 11 Pascal de Bruijn 2010-01-03 17:41:36 UTC
Created attachment 150741 [details]
Printer (ICC) Color Profile: HP Photosmart C6280 with Sihl Quick Dry Satin 280gsm paper

This is an example ICC profile with which the functionality can be tested.

This problem also occurs when we print to CUPS-PDF, so this can be tested without actually having to waste any paper at all.
Comment 12 Stephane Delcroix 2010-01-04 13:13:13 UTC
*** Bug 600257 has been marked as a duplicate of this bug. ***
Comment 13 Stephane Delcroix 2010-01-04 19:19:30 UTC
commit dab8fd561e92abdeab56224077b1c333416f8d68
Author: Stephane Delcroix <stephane@delcroix.org>
Date:   Mon Jan 4 20:18:32 2010 +0100

    Allow printing with color profile enabled
    
    Restore the previous behavior, i.e. use a standard rgb profile if the image doesn't have an embedded profile.
    
    Fixes bgo #604465