diff sat/bridge/bridge_constructor/bridge_template.ini @ 3066:2cc2f65379f7

core: added imageCheck and imageResize methods: imageCheck will give a report on image, notably it will tell if it's too big and needs to be resized before a transfer. imageResize will create a new image with the requested size and return a path to it.
author Goffi <goffi@goffi.org>
date Tue, 29 Oct 2019 20:38:39 +0100
parents ab2696e34d29
children f8cc88c773c8
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/bridge_template.ini	Tue Oct 29 20:24:29 2019 +0100
+++ b/sat/bridge/bridge_constructor/bridge_template.ini	Tue Oct 29 20:38:39 2019 +0100
@@ -909,3 +909,24 @@
 sig_out=a{ss}
 doc=Get a dict to short name => whole namespaces
 doc_return=namespaces mapping
+
+[imageCheck]
+type=method
+category=core
+sig_in=s
+sig_out=s
+doc=Analyze an image a return a report
+doc_return=serialized report
+
+[imageResize]
+async=
+type=method
+category=core
+sig_in=sii
+sig_out=s
+doc=Create a new image with desired size
+doc_param_0=image_path: path of the image to resize
+doc_param_1=width: width of the new image
+doc_param_2=height: height of the new image
+doc_return=path of the new image with desired size
+    the image must be deleted once not needed anymore