core, bridge: new imageGeneratePreview helped method to generate a thumbnail

This commit is contained in:
Goffi 2020-03-01 18:48:06 +01:00
commit 3686d7e036

View file

@ -972,3 +972,14 @@ 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
[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