Ignore:
Timestamp:
Dec 16, 2011, 6:00:06 PM (13 years ago)
Author:
patdenice
Message:

bug:2535
Image is not cropped and ressized if requested size is bigger than image size.

File:
1 edited

Legend:

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

    r12739 r12749  
    32333233  $img = new pwg_image($image_path, $params['library']);
    32343234
     3235  if (!is_bool($params['crop']))
     3236    $params['crop'] = get_boolean($params['crop']);
     3237  if (!is_bool($params['follow_orientation']))
     3238    $params['follow_orientation'] = get_boolean($params['follow_orientation']);
     3239
    32353240  $result =  $img->pwg_resize(
    32363241    $thumb_path,
     
    32403245    false, // automatic rotation is not needed for thumbnails.
    32413246    true, // strip metadata
    3242     get_boolean($params['crop']),
    3243     get_boolean($params['follow_orientation'])
     3247    $params['crop'],
     3248    $params['follow_orientation']
    32443249  );
    32453250
Note: See TracChangeset for help on using the changeset viewer.