GNOME Bugzilla – Bug 322057
eog print output is corrupt
Last modified: 2006-06-08 16:17:06 UTC
Version details: 2.13.1 Distribution/Version: Ubuntu Dapper Forwarded from: https://launchpad.net/distros/ubuntu/+source/eog/+bug/3673 If I open an image with eog and choose print / print preview the output looks crappy. Same if I print the image on a printer. Tried this with two different images (screenshots). I'll attach two screenshots, the original image loaded in eog and the same image in eog's print preview. Original: http://librarian.launchpad.net/1079632/eogprint-orig.png Print Preview: http://librarian.launchpad.net/1079633/eogprint-prev.png (Jpg preview seems to be fine)
http://bugzilla.ubuntu.com/show_bug.cgi?id=19959 states the same problems. (Picture: http://ubuntuforums.org/attachment.php?attachmentid=2985&d=1129602139 ) I'm inclined to believe it's a gnomeprint problem. Somebody else?
(In reply to comment #1) > http://bugzilla.ubuntu.com/show_bug.cgi?id=19959 states the same problems. > (Picture: http://ubuntuforums.org/attachment.php?attachmentid=2985&d=1129602139 ) > > I'm inclined to believe it's a gnomeprint problem. Somebody else? 1. This seems to be a dupe of 326928 (or vice versa). 2. It's not a gnomeprint problem: - Doesn't affect gthumb (2.7.1) using gnomeprint with the same image. 3. Only happens with gif images (for me). If the same image is opened and saved as png (using the Gimp) the output is no longer corrupt. Same for jpeg.
Seems to happen for .png files for the reporter as well, either gthumb and eog. (gthumb:21731): GnomePrintCupsPlugin-WARNING **: iconv does not support ppd character encoding: ISOLatin1, trying CSISOLatin1 (gthumb:21731): GnomePrint-WARNING **: Could not create filter from description 'frgba': filter 'frgba' is unknown are error messages on the console.
*** Bug 326928 has been marked as a duplicate of this bug. ***
Created attachment 65551 [details] Sample JPG (no transparency of course)
Created attachment 65552 [details] Sample GIF (transparency)
Created attachment 65553 [details] Sample PNG (no alpha channel)
Created attachment 65555 [details] Sample PNG (with alpha channel)
(See previous attachments) Time for a bump on this one I think. Here's the refined version of the problem: it's the transparency that does it. The problem's still there in EOG 2.14.1 GIF: always has transparency -> broken PNG with transparency -> broken PNG without transparency -> fine JPG: no transparency -> fine
Same problem for me and my png with transparency. So, I replaced gnome_print_rgbimage by gnome_print_rgbaimage in eog-image.c Result: - print preview: works fine - printing to pdf: works fine - printing to a real printer: prints completely black page! argh! Any ideas?
What does gthumb do? (its printing works fine)
gthumb's cups-pdf output is black, too. So I guess the eog bug will be fixed by using gnome_print_rgbaimage and I should report the black page bug somewhere in gnome-print, cups or ghostscript.
Created attachment 66438 [details] [review] patch for printing rgba images This patch fixes the print preview and (at least) printing to ps files for rgba images.
Patch applied in gnome-2-14, HEAD, and eog-ng branches. Thanks! 2006-05-31 Lucas Rocha <lucasr@gnome.org> * libeog/eog-image.c (eog_image_print): fix printing for images with alpha channel (Fixes bug #322057). Patch from Jan Kümmel <gnome-bugz@snorc.org>. Closing this bug as the specific issue reported is solved. The black page problem should be filed in a separate bug report.
It doesn't seem to have ended up in the 2.14.2 release? Was that intended?
Hum, and not in 2.15.2 either.