From c83ba836cac44b0929d75bb11f01527d78791f6f Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Sat, 22 Jan 2011 19:37:46 +0000 Subject: Image Viewer consumes large amounts of memory and CPU, does not view images #2567 There is no need in scaling images while rotating. --- (limited to 'ImageView.py') diff --git a/ImageView.py b/ImageView.py index ec0c79a..e91dc95 100644 --- a/ImageView.py +++ b/ImageView.py @@ -197,10 +197,6 @@ class ImageViewer(gtk.DrawingArea): logging.warning('Got unsupported rotate angle') self._temp_pixbuf = self.pixbuf.rotate_simple(rotate) - self.set_zoom(self.zoom) - if self._optimal_zoom_flag == True: - self.zoom = self.calculate_optimal_zoom(pixbuf=self._temp_pixbuf) - width = int(self._temp_pixbuf.get_width() * self.zoom) height = int(self._temp_pixbuf.get_height() * self.zoom) -- cgit v0.9.1