Ignore:
Timestamp:
Apr 22, 2011, 12:35:16 AM (13 years ago)
Author:
patdenice
Message:

feature:2273
Add crop functionality to webservice and batch manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r10538 r10553  
    26742674  }
    26752675
    2676   $resize_params = array('maxwidth', 'maxheight', 'quality');
     2676  $resize_params = array('maxwidth', 'maxheight', 'quality', 'crop', 'follow_orientation');
    26772677  $type = $params['type'] == 'thumbnail' ? 'thumb' : 'websize';
    26782678  foreach ($resize_params as $param)
    26792679  {
    2680     if (empty($params[$param]))
     2680    if (empty($params[$param]) and isset($conf['upload_form_'.$type.'_'.$param]))
    26812681      $params[$param] = $conf['upload_form_'.$type.'_'.$param];
    26822682  }
     
    27112711      $params['maxheight'],
    27122712      $params['quality'],
    2713       true
     2713      true,
     2714      get_boolean($params['crop']),
     2715      get_boolean($params['follow_orientation'])
    27142716    );
    27152717    return true;
Note: See TracChangeset for help on using the changeset viewer.