root

Changeset 460

Show
Ignore:
Timestamp:
01/05/09 22:34:13 (2 years ago)
Author:
wbond
Message:

Fixed fImage::cropToRatio() and fImage::resize() to always return the object even if nothing is to be done

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fImage.php

    r457 r460 Hide Line Numbers
    1010 * @link       http://flourishlib.com/fImage 
    1111 *  
    12  * @version    1.0.0b5 
     12 * @version    1.0.0b6 
     13 * @changes    1.0.0b6  Fixed ::cropToRatio() and ::resize() to always return the object even if nothing is to be done [wb, 2009-01-05] 
    1314 * @changes    1.0.0b5  Added check to see if exec() is disabled, which causes ImageMagick to not work [wb, 2009-01-03] 
    1415 * @changes    1.0.0b4  Fixed ::saveChanges() to not delete the image if no changes have been made [wb, 2008-12-18] 
     
    542543        // If nothing changed, don't even record the modification 
    543544        if ($orig_width == $new_width && $orig_height == $new_height) { 
    544             return
     545            return $this
    545546        } 
    546547         
     
    881882        // If the size did not go down, don't even record the modification 
    882883        if ($orig_width <= $new_width || $orig_height <= $new_height) { 
    883             return
     884            return $this
    884885        } 
    885886