GTK3: pixbuf.save is not available via gi, use savev. Like this scaling works again
svn: r20069
This commit is contained in:
@@ -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))
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import Gtk
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user