Changeset 10235 for trunk/ws.php


Ignore:
Timestamp:
Apr 10, 2011, 10:59:02 AM (13 years ago)
Author:
patdenice
Message:

feature:2259
Add web service method: pwg.images.resize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r10017 r10235  
    404404    'activate/deactivate/delete/set_default a theme<br>administration status required'
    405405    );
     406
     407  $service->addMethod(
     408    'pwg.images.resize',
     409    'ws_images_resize',
     410    array(
     411      'image_id' => array(),
     412      'type' => array('default' => 'thumbnail'),
     413      'maxwidth' => array('default' => null),
     414      'maxheight' => array('default' => null),
     415      'quality' => array('default' => null),
     416    ),
     417    'Regenerate thumbnails or websize photo with given arguments.
     418<br>Argument "type" can be "thumbnail" or "websize". Default is "thumbnail".
     419<br>If maxwidth, maxheight or quality are missing, default parameters of upload will be used.'
     420);
    406421}
    407422
Note: See TracChangeset for help on using the changeset viewer.