feature:2259

Add web service method: pwg.images.resize

git-svn-id: http://piwigo.org/svn/trunk@10235 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2011-04-10 08:59:02 +00:00
parent 2d20fe461a
commit 89803639ac
2 changed files with 87 additions and 0 deletions
+15
View File
@@ -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');