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.
This commit is contained in:
parent
fb2dc9b7a0
commit
93a4e488ea
1 changed files with 197 additions and 0 deletions
|
|
@ -909,3 +909,24 @@ sig_in=
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue