aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ws.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 7bc4dc21c..3d0af18d1 100644
--- a/ws.php
+++ b/ws.php
@@ -403,6 +403,21 @@ function ws_addDefaultMethods( $arr )
),
'activate/deactivate/delete/set_default a theme<br>administration status required'
);
+
+ $service->addMethod(
+ 'pwg.images.resize',
+ 'ws_images_resize',
+ array(
+ 'image_id' => array(),
+ 'type' => array('default' => 'thumbnail'),
+ 'maxwidth' => array('default' => null),
+ 'maxheight' => array('default' => null),
+ 'quality' => array('default' => null),
+ ),
+ 'Regenerate thumbnails or websize photo with given arguments.
+<br>Argument "type" can be "thumbnail" or "websize". Default is "thumbnail".
+<br>If maxwidth, maxheight or quality are missing, default parameters of upload will be used.'
+);
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');