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 321815 - Eog enlarges image way too much when printing
Eog enlarges image way too much when printing
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
git master
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
: 321877 (view as bug list)
Depends on: 356947
Blocks:
 
 
Reported: 2005-11-18 17:08 UTC by Daniel Holbach
Modified: 2007-01-05 03:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Daniel Holbach 2005-11-18 17:08:21 UTC
Version details: 2.12.1
Distribution/Version: Ubuntu Breezy

Forwarded from: http://bugzilla.ubuntu.com/show_bug.cgi?id=18275

I have an image that's supposed to fit in a cd case. It's 502x509 pixels large.
When i print the image, it gets enlarged to a size larger then A4 (default
papersize). I expected the image to fit in a cd case. Also i think that an image
should never be printed larger than the default papersize.

I use eog 2.12.1 in Breezy.
As for the printing options, i didn't touch any of them. 
The default papersize is A4, paper orientation is portrait, nothing special.
I just clicked File, Print selected my printer and hit Print.
Comment 1 Lucas Rocha 2006-01-10 04:40:03 UTC
*** Bug 321877 has been marked as a duplicate of this bug. ***
Comment 2 Juanjo Garcia-Ripoll 2006-02-03 10:08:38 UTC
This bug should be marked confirmed, since already another (confirmed) bug was marked as duplicate of this.

Anyway, the problem in general is that

1) there is no way to ensure the size of a printed image.
2) it is not clear how eog decides the size of the image.
3) eog does not make any effort to fit the image in the paper.

For instance:

1) Take a screenshot of a 1024x768 screen using Alt+Print
2) Open this screenshot in eog.
3) Click print using default settings (A4, portrait).
4) Resulting image does in general exceed the size of
   paper and is truncated.

This happens with v 2.12.1 on an Ubuntu 5.10.
Comment 3 Alexander Hunziker 2006-03-04 20:09:09 UTC
To make things worse, there is basically NO gnome app that makes printing pictures reasonably easy. eog and f-spot don't care about the size of the image. gthumb does, but it doesn't let you select the printer. Now what if my default printer is a draft one...

A normal user really shouldn't have to bother with The Gimp's printing dialog to have his image printed the size he/she wants.
Comment 4 Daniel Holbach 2006-09-27 08:48:16 UTC
Now the bug URL is: https://launchpad.net/distros/ubuntu/+source/eog/+bug/24414
Comment 5 Claudio Saavedra 2006-11-16 17:27:05 UTC
(In reply to comment #2)
> Anyway, the problem in general is that
> 
> 1) there is no way to ensure the size of a printed image.
> 2) it is not clear how eog decides the size of the image.
> 3) eog does not make any effort to fit the image in the paper.
> 
> For instance:
> 
> 1) Take a screenshot of a 1024x768 screen using Alt+Print
> 2) Open this screenshot in eog.
> 3) Click print using default settings (A4, portrait).
> 4) Resulting image does in general exceed the size of
>    paper and is truncated.

This issue should be fixed by now. I commited a patch to HEAD which uses GtkPrint instead of libgnomeprint and takes care of resizing the image to fit in the page when it is bigger than the paper.

Anyway, there is still no way for the user to resize the image to the size he or she wants. Leaving the bug open in the meantime. See bug #356947 for progress on this.
Comment 6 Claudio Saavedra 2007-01-05 03:30:03 UTC
I finally commited my patch to allow users to define the size of the printed image. Considering this bug as fixed!

Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.