Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#486 closed defect (fixed)

The image opened is very small

Reported by: erikos Owned by: sayamindu
Priority: Unspecified by Maintainer Milestone:
Component: Imageviewer Version: 0.84.x
Severity: Blocker Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: New


  • take a screenshot
  • open it in Imageviewer
  • it is very small
  • is full canvas in Browse

Change History (7)

comment:1 Changed 15 years ago by erikos

  • Version changed from Unspecified to 0.84.x

comment:2 Changed 15 years ago by erikos

  • Bug Status changed from Unconfimed to New
  • Milestone changed from Unspecified by Release Team to 0.84

So the width and height of the canvas are reported to be very small. So the image is zoomed down to fit. It happens as well, only when opening the image directly - not when using the object chooser dialog.

Looks like introduced by #428

comment:3 Changed 15 years ago by tomeu

This seems to work fine:

diff --git a/ b/
index b72d617..91de299 100644
--- a/
+++ b/
@@ -93,13 +93,17 @@ class ImageViewerActivity(activity.Activity):
             'tmp%i' % time.time())
        , tempfile)
-        self.view.set_file_location(tempfile)
+        gobject.idle_add(self.__set_file_idle_cb, tempfile)
+    def __set_file_idle_cb(self, file_path):
+        self.view.set_file_location(file_path)
         self.zoom = int(self.metadata.get('zoom', '0'))
         if self.zoom > 0:
+        return True
     def write_file(self, file_path):
         self.metadata['zoom'] = str(self.zoom)

comment:4 Changed 15 years ago by tomeu

  • Keywords r? added

comment:5 Changed 15 years ago by sayamindu

  • Keywords r+ added; r? removed

Patch looks good. Please commit.

comment:6 Changed 15 years ago by sayamindu

  • Resolution set to fixed
  • Status changed from new to closed

Ok, committed to master and cherry-picked to 0.84. Closing this. Thanks to Tomeu for stepping in and fixing this.

comment:7 Changed 11 years ago by godiard

  • Milestone 0.84 deleted

Milestone 0.84 deleted

Note: See TracTickets for help on using tickets.