diff sat/bridge/bridge_constructor/bridge_template.ini @ 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/bridge_constructor/bridge_template.ini	Sun Mar 01 18:47:05 2020 +0100
+++ b/sat/bridge/bridge_constructor/bridge_template.ini	Sun Mar 01 18:48:06 2020 +0100
@@ -972,3 +972,14 @@
 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
+
+[imageGeneratePreview]
+async=
+type=method
+category=core
+sig_in=ss
+sig_out=s
+doc=Generate a preview of an image in cache
+doc_param_0=image_path: path of the original image
+doc_param_1=%(doc_profile_key)s
+doc_return=path to the preview in cache