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 322057 - eog print output is corrupt
eog print output is corrupt
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
: 326928 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-11-21 17:36 UTC by Daniel Holbach
Modified: 2006-06-08 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample JPG (no transparency of course) (386 bytes, image/jpeg)
2006-05-15 22:46 UTC, Stephen
  Details
Sample GIF (transparency) (156 bytes, image/gif)
2006-05-15 22:46 UTC, Stephen
  Details
Sample PNG (no alpha channel) (255 bytes, image/png)
2006-05-15 22:47 UTC, Stephen
  Details
Sample PNG (with alpha channel) (259 bytes, image/png)
2006-05-15 22:48 UTC, Stephen
  Details
patch for printing rgba images (946 bytes, patch)
2006-05-29 21:10 UTC, Jan Kümmel
none Details | Review

Description Daniel Holbach 2005-11-21 17:36:27 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)
Comment 1 Daniel Holbach 2005-11-23 10:00:12 UTC
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?
Comment 2 Stephen 2006-01-26 22:25:44 UTC
(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.
Comment 3 Daniel Holbach 2006-03-01 10:55:44 UTC
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.
Comment 4 Lucas Rocha 2006-03-02 05:24:34 UTC
*** Bug 326928 has been marked as a duplicate of this bug. ***
Comment 5 Stephen 2006-05-15 22:46:14 UTC
Created attachment 65551 [details]
Sample JPG (no transparency of course)
Comment 6 Stephen 2006-05-15 22:46:49 UTC
Created attachment 65552 [details]
Sample GIF (transparency)
Comment 7 Stephen 2006-05-15 22:47:33 UTC
Created attachment 65553 [details]
Sample PNG (no alpha channel)
Comment 8 Stephen 2006-05-15 22:48:16 UTC
Created attachment 65555 [details]
Sample PNG (with alpha channel)
Comment 9 Stephen 2006-05-15 22:49:49 UTC
(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
Comment 10 Jan Kümmel 2006-05-27 15:25:20 UTC
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?
Comment 11 Stephen 2006-05-29 11:54:58 UTC
What does gthumb do? (its printing works fine)
Comment 12 Jan Kümmel 2006-05-29 20:45:30 UTC
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.
Comment 13 Jan Kümmel 2006-05-29 21:10:04 UTC
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.
Comment 14 Lucas Rocha 2006-06-01 04:07:17 UTC
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.
Comment 15 Daniel Holbach 2006-06-06 14:25:30 UTC
It doesn't seem to have ended up in the 2.14.2 release? Was that intended?
Comment 16 Daniel Holbach 2006-06-08 16:17:06 UTC
Hum, and not in 2.15.2 either.