Changeset 2709

Show
Ignore:
Timestamp:
05/28/2008 05:36:40 PM (6 months ago)
Author:
Shadowhand
Message:

Fixing #590, thanks rick.

Location:
trunk/system/libraries/drivers/Image
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Image/GD.php

    r2007 r2709  
    4848 
    4949                // Set the "save" function 
    50                 switch (substr($file, strrpos($file, '.') + 1)) 
     50                switch (strtolower(file::extension($file))) 
    5151                { 
    5252                        case 'jpg': 
  • trunk/system/libraries/drivers/Image/ImageMagick.php

    r2593 r2709  
    3232                if (empty($config['directory'])) 
    3333                { 
    34                         // Attempt to locate IM by using "which" 
     34                        // Attempt to locate IM by using "which" (only works for *nix!) 
    3535                        if ( ! is_file($path = exec('which convert'))) 
    3636                                throw new Kohana_Exception('image.imagemagick.not_found');