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 748598 - EOG opens tiff always with a small window
EOG opens tiff always with a small window
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-28 16:44 UTC by Felix
Modified: 2015-05-17 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of eog opening a tiff (787.73 KB, image/png)
2015-05-11 19:15 UTC, Felix
Details

Description Felix 2015-04-28 16:44:27 UTC
Usually the size of a newly opened eog window is as it was when closed.

But when opening tiffs the eog window always opens with 388x298 pixel.
Comment 1 Felix Riemann 2015-05-10 13:08:58 UTC
No, eog does not remember its window size when closing.
If you start eog with an image it will try to make the window as large as necessary to achieve ideally 100% zoom. This is limited I think to about 2/3 of your screen size.
Comment 2 Felix 2015-05-11 19:15:11 UTC
Created attachment 303233 [details]
Screenshot of eog opening a tiff

eog opens tiffs just too small on my machine.
Comment 3 Felix Riemann 2015-05-11 19:43:11 UTC
That looks indeed wrong.
I suppose you can't attach the image here?

Can you launch eog from console with EOG_DEBUG=1 set and attach the output?
Comment 4 Felix Riemann 2015-05-11 21:22:08 UTC
Okay, I could reproduce it with an empty TIFF file the size of yours. It seems the the signal to show the UI is emitted too early (before the size of the image is known) when the TIFF file is loaded. Converting the image to aother supported format like BMP or PNG makes it work correctly.

I'll have to check the logs why the signal emission was setup here, before I can change it.
Comment 5 Felix Riemann 2015-05-17 14:27:52 UTC
commit 5ae0b28eebc18260d01d23481b15bf1201e6ebfd
Author: Felix Riemann <>
Date:   Sun May 17 16:18:00 2015 +0200

    EogImage: Fix too early size-prepared emission
    
    If an image without metadata support is loaded it could happen that
    the size-prepared signal was emitted without knowing the actual
    image size. That resulted in a smaller than necessary window size.
    Remove unneeded emission since the loader will make sure to emit the
    signal once the size is known.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748598
---
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.