Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
3065:f8e3789912d0 | 3066:2cc2f65379f7 |
---|---|
907 category=core | 907 category=core |
908 sig_in= | 908 sig_in= |
909 sig_out=a{ss} | 909 sig_out=a{ss} |
910 doc=Get a dict to short name => whole namespaces | 910 doc=Get a dict to short name => whole namespaces |
911 doc_return=namespaces mapping | 911 doc_return=namespaces mapping |
912 | |
913 [imageCheck] | |
914 type=method | |
915 category=core | |
916 sig_in=s | |
917 sig_out=s | |
918 doc=Analyze an image a return a report | |
919 doc_return=serialized report | |
920 | |
921 [imageResize] | |
922 async= | |
923 type=method | |
924 category=core | |
925 sig_in=sii | |
926 sig_out=s | |
927 doc=Create a new image with desired size | |
928 doc_param_0=image_path: path of the image to resize | |
929 doc_param_1=width: width of the new image | |
930 doc_param_2=height: height of the new image | |
931 doc_return=path of the new image with desired size | |
932 the image must be deleted once not needed anymore |