Changeset 1885 for trunk/system/libraries/drivers/Image/ImageMagick.php
- Timestamp:
- 01/31/2008 09:03:55 AM (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Image/ImageMagick.php
r1845 r1885 176 176 protected function properties() 177 177 { 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); 182 179 } 183 180
