diff sat/bridge/dbus_bridge.py @ 3201:439e2f88c3a9

core, bridge: new `imageGeneratePreview` helped method to generate a thumbnail
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 18:48:06 +0100
parents 84a94b385760
children ae09989e9feb
line wrap: on
line diff
--- a/sat/bridge/dbus_bridge.py	Sun Mar 01 18:47:05 2020 +0100
+++ b/sat/bridge/dbus_bridge.py	Sun Mar 01 18:48:06 2020 +0100
@@ -397,6 +397,12 @@
         return self._callback("imageCheck", str(arg_0))
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
+                         in_signature='ss', out_signature='s',
+                         async_callbacks=('callback', 'errback'))
+    def imageGeneratePreview(self, image_path, profile_key, callback=None, errback=None):
+        return self._callback("imageGeneratePreview", str(image_path), str(profile_key), callback=callback, errback=errback)
+
+    @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='sii', out_signature='s',
                          async_callbacks=('callback', 'errback'))
     def imageResize(self, image_path, width, height, callback=None, errback=None):