GNOME Bugzilla – Bug 604465
Cannot print if color profile is enabled
Last modified: 2010-01-04 19:19:30 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.
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)
Created attachment 149796 [details] output from "f-spot --debug" in terminal
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"
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)
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.
no, this IS a bug. color profiles are there to be used :)
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.
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 :)
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?
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?
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.
*** Bug 600257 has been marked as a duplicate of this bug. ***
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