Ignore:
Timestamp:
Dec 16, 2011, 6:02:16 PM (9 years ago)
Author:
patdenice
Message:

merge r12749 from trunk to branch 2.3
bug:2535
Image is not cropped and ressized if requested size is bigger than image size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/include/ws_functions.inc.php

    r12738 r12750  
    32513251  $img = new pwg_image($image_path, $params['library']);
    32523252
     3253  if (!is_bool($params['crop']))
     3254    $params['crop'] = get_boolean($params['crop']);
     3255  if (!is_bool($params['follow_orientation']))
     3256    $params['follow_orientation'] = get_boolean($params['follow_orientation']);
     3257
    32533258  $result =  $img->pwg_resize(
    32543259    $thumb_path,
     
    32583263    false, // automatic rotation is not needed for thumbnails.
    32593264    true, // strip metadata
    3260     get_boolean($params['crop']),
    3261     get_boolean($params['follow_orientation'])
     3265    $params['crop'],
     3266    $params['follow_orientation']
    32623267  );
    32633268
Note: See TracChangeset for help on using the changeset viewer.