From 89803639acb3e3a57ed3b6fcbecb4db0d80bde06 Mon Sep 17 00:00:00 2001 From: patdenice Date: Sun, 10 Apr 2011 08:59:02 +0000 Subject: feature:2259 Add web service method: pwg.images.resize git-svn-id: http://piwigo.org/svn/trunk@10235 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ws.php') 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
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. +
Argument "type" can be "thumbnail" or "websize". Default is "thumbnail". +
If maxwidth, maxheight or quality are missing, default parameters of upload will be used.' +); } add_event_handler('ws_add_methods', 'ws_addDefaultMethods'); -- cgit v1.2.3