Changeset 10686 for trunk/ws.php
- Timestamp:
- Apr 29, 2011, 7:38:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ws.php
r10684 r10686 406 406 407 407 $service->addMethod( 408 'pwg.images.resize ',409 'ws_images_resize ',408 'pwg.images.resizeThumbnail', 409 'ws_images_resizethumbnail', 410 410 array( 411 411 'image_id' => array('default' => null), 412 412 'image_path' => array('default' => null), 413 'type' => array('default' => 'thumbnail'), 413 'maxwidth' => array('default' => $conf['upload_form_thumb_maxwidth']), 414 'maxheight' => array('default' => $conf['upload_form_thumb_maxheight']), 415 'quality' => array('default' => $conf['upload_form_thumb_quality']), 416 'crop' => array('default' => $conf['upload_form_thumb_crop']), 417 'follow_orientation' => array('default' => $conf['upload_form_thumb_follow_orientation']), 418 'library' => array('default' => $conf['graphics_library']), 419 ), 420 'Create/Regenerate thumbnails photo with given arguments. 421 <br>One of arguments "image_id" or "image_path" must be sent.' 422 ); 423 424 $service->addMethod( 425 'pwg.images.resizeWebsize', 426 'ws_images_resizewebsize', 427 array( 428 'image_id' => array(), 429 'maxwidth' => array('default' => $conf['upload_form_websize_maxwidth']), 430 'maxheight' => array('default' => $conf['upload_form_websize_maxheight']), 431 'quality' => array('default' => $conf['upload_form_websize_quality']), 414 432 'automatic_rotation' => array('default' => $conf['upload_form_automatic_rotation']), 415 433 'library' => array('default' => $conf['graphics_library']), 416 'maxwidth' => array('default' => null),417 'maxheight' => array('default' => null),418 'crop' => array('default' => null),419 'follow_orientation' => array('default' => null),420 'quality' => array('default' => null),421 434 ), 422 'Create/Regenerate thumbnails or websize photo with given arguments. 423 <br>One of arguments "image_id" or "image_path" must be passed filled. 424 <br>Argument "type" can be "thumbnail" or "websize". Default is "thumbnail". 425 <br>If maxwidth, maxheight, crop, follow_orientation or quality are missing, default parameters of upload will be used.' 426 ); 435 'Regenerate websize photo with given arguments.' 436 ); 427 437 428 438 $service->addMethod(
Note: See TracChangeset
for help on using the changeset viewer.