Changeset 1885

Show
Ignore:
Timestamp:
01/31/2008 09:03:55 AM (10 months ago)
Author:
Shadowhand
Message:

Removing identify usage from the ImageMagick? Image driver, do to the increased speed of getimagesize()

Files:
1 modified

Legend:

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

    r1845 r1885  
    176176        protected function properties() 
    177177        { 
    178                 /** 
    179                  * @todo This should be replaced with a getimagesize() alternative, due to the poor performance of exec() 
    180                  */ 
    181                 return explode(',', exec(escapeshellcmd($this->dir.'identify'.$this->ext).' -format '.escapeshellarg('%w,%h').' '.$this->cmd_image)); 
     178                return array_slice(getimagesize($this->cmd_image), 0, 2, FALSE); 
    182179        } 
    183180