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 783416 - A blank page output when print a specific JPEG file
A blank page output when print a specific JPEG file
Status: RESOLVED OBSOLETE
Product: eog
Classification: Core
Component: image viewer
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-05 04:58 UTC by ZhangXiufu
Modified: 2021-06-19 08:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The JPEG file that occures the problem (2.93 MB, application/zip)
2017-06-05 05:06 UTC, ZhangXiufu
Details
The JPEG file that occures the problem (1.87 MB, application/octet-stream)
2017-06-05 05:06 UTC, ZhangXiufu
Details
The Image Viewer generated print data (859 bytes, application/pdf)
2017-08-01 03:39 UTC, ZhangXiufu
Details

Description ZhangXiufu 2017-06-05 04:58:37 UTC
Please describe the problem:
A blank page output when print a specific JPEG image file.
I have a JPEG image file "Penguins_1200_half.jpg" that is 12773x4922 pixels. When I open the image with Image Viewer and choose print, the file cannot be printed correctly, a blank page is output by the printer. 
The file in question is available for your perusal at attachment.

Product Version details: Image Viewer 3.24.0
Distribution/Version: Ubuntu 17.04

Steps to reproduce:
1. Open the file with Image Viewer.
2. Print the file.

Actual results:
The file cannot be printed correctly, a blank page is output by the printer.

Expected results:
The file should print as it is displayed on the preview.

Does this happen every time?
Yes

Other information:
1. This problem only occurs on Ubuntu 17.04. It does not occurs on Ubuntu 16.04, CentOS 7.3 and OpenSUSE Leap 42.2.
2. On Ubuntu 17.04, this problem does not occurs when open the file with "Shotwell(0.22.0)".
3. This problem is occurs only when the JPEG file "Penguins_1200_half.jpg" is printed. Other JPG files are printed, the result becomes OK.
Comment 1 ZhangXiufu 2017-06-05 05:06:11 UTC
Created attachment 353159 [details]
The JPEG file that occures the problem
Comment 2 ZhangXiufu 2017-06-05 05:06:35 UTC
Created attachment 353160 [details]
The JPEG file that occures the problem
Comment 3 ZhangXiufu 2017-06-05 05:11:01 UTC
The size of the JPEG file is more than a single upload attachment size limit, so divided into two compressed packages.
Comment 4 Felix Riemann 2017-06-07 19:18:34 UTC
Hmm, eog's printing code is unchanged since GNOME 3.8, so I guess the issue is probably somewhere further down the printing pipeline (libcairo, CUPS, the printer driver, ???).

Do you see any difference between the different versions if you select to print the image into a PDF file instead of sending it to the printer? IIRC, the PDF output is pretty much the same that is forwarded to the printing daemon.
Comment 5 ZhangXiufu 2017-08-01 03:37:56 UTC
(In reply to Felix Riemann from comment #4)
> Hmm, eog's printing code is unchanged since GNOME 3.8, so I guess the issue
> is probably somewhere further down the printing pipeline (libcairo, CUPS,
> the printer driver, ???).
> 
> Do you see any difference between the different versions if you select to
> print the image into a PDF file instead of sending it to the printer? IIRC,
> the PDF output is pretty much the same that is forwarded to the printing
> daemon.

Hmm, I'm very sorry to reply to you after so long time.

I pause the print queue and obtain the Image Viewer generated print data (d00XXX-001(XXX: Job's No.)) in /var/spool/cups. This is a pdf format file, and I have confirmed that is a blank page open with Document Viewer (Evince). This is what makes me think this is an Image Viewer's bug.

After you tell me that eog's printing code is unchanged since GNOME 3.8, I re-confirmed the Image Viewer generated print data again. This time I open the data with gedit, and found the creator of PDF data is Cairo (Ver.1.14.8). For details, please refer to the attachment “d00275-001”

Excerpt:
<< /Creator (cairo 1.14.8 (http://cairographics.org))
   /Producer (cairo 1.14.8 (http://cairographics.org))
>>

So I think the issue is probably caused by Cairo. If that is correct, how should I deal with this bug report? Can you help me to transfer this bug report to Cairo? Or I re-signed a bug report at https://bugs.freedesktop.org/?

By the way, Can you tell me how to print the image into a PDF file?
Comment 6 ZhangXiufu 2017-08-01 03:39:13 UTC
Created attachment 356684 [details]
The Image Viewer generated print data
Comment 7 André Klapper 2021-06-19 08:46:00 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/eog/-/issues/

Thank you for your understanding and your help.