From 094bb7e6827ff7c685dbdca786c394be81f2bdc6 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 13 Dec 2011 13:43:18 +0000 Subject: feature 2531 added: pwg.images.add is able to generate web size + thumbnail (remote client needs to set "resize" option to something else than 0). When the "resize" is On, only the "file" must be send with pwg.images.addChunk. git-svn-id: http://piwigo.org/svn/branches/2.3@12722 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 81af4bb04..1b43cc2b5 100644 --- a/ws.php +++ b/ws.php @@ -226,7 +226,7 @@ function ws_addDefaultMethods( $arr ) 'ws_images_add', array( 'file_sum' => array(), - 'thumbnail_sum' => array(), + 'thumbnail_sum' => array('default' => null), 'high_sum' => array('default' => null), 'original_sum' => array(), 'original_filename' => array('default' => null), @@ -240,6 +240,7 @@ function ws_addDefaultMethods( $arr ) 'default' => 0, 'maxValue' => $conf['available_permission_levels'] ), + 'resize' => array('default' => false), ), 'POST method only.
categories is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.' -- cgit v1.2.3