aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-22 11:34:57 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-22 11:34:57 +0000
commit10ff3f2f06e5f241b14bc48474cc6fc3bc46ae0c (patch)
treee0fdd857a3a307e49177e89550aaa4161e6059c6 /ws.php
parent03c9195f7c846522c21f99f35d01d4054900f343 (diff)
feature:2274
pwg.images.resize method is able to create or regenerate image from image path. git-svn-id: http://piwigo.org/svn/trunk@10563 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/ws.php b/ws.php
index fe428120c..fd50911a2 100644
--- a/ws.php
+++ b/ws.php
@@ -408,7 +408,8 @@ function ws_addDefaultMethods( $arr )
'pwg.images.resize',
'ws_images_resize',
array(
- 'image_id' => array(),
+ 'image_id' => array('default' => null),
+ 'image_path' => array('default' => null),
'type' => array('default' => 'thumbnail'),
'maxwidth' => array('default' => null),
'maxheight' => array('default' => null),
@@ -416,7 +417,8 @@ function ws_addDefaultMethods( $arr )
'follow_orientation' => array('default' => null),
'quality' => array('default' => null),
),
- 'Regenerate thumbnails or websize photo with given arguments.
+ 'Create/Regenerate thumbnails or websize photo with given arguments.
+<br>One of arguments "image_id" or "image_path" must be passed filled.
<br>Argument "type" can be "thumbnail" or "websize". Default is "thumbnail".
<br>If maxwidth, maxheight, crop, follow_orientation or quality are missing, default parameters of upload will be used.'
);