diff --git a/src/gui/thumbnails.py b/src/gui/thumbnails.py index ed65c6852..c70f7775e 100644 --- a/src/gui/thumbnails.py +++ b/src/gui/thumbnails.py @@ -211,7 +211,7 @@ def __create_thumbnail_image(src_file, mtype=None, rectangle=None, pixbuf = pixbuf.scale_simple(scaled_width, scaled_height, GdkPixbuf.InterpType.BILINEAR) - pixbuf.save(filename, "png") + pixbuf.savev(filename, "png", "", "") return True except Exception, err: LOG.warn("Error scaling image down: %s", str(err)) diff --git a/src/gui/widgets/photo.py b/src/gui/widgets/photo.py index f8de54e8e..281a0efe0 100644 --- a/src/gui/widgets/photo.py +++ b/src/gui/widgets/photo.py @@ -25,6 +25,7 @@ # #------------------------------------------------------------------------- from gi.repository import GObject +from gi.repository import Gdk from gi.repository import Gtk #-------------------------------------------------------------------------