Index: image.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/image.inc,v retrieving revision 1.5 diff -u -p -r1.5 image.inc --- image.inc 19 Jun 2005 08:59:06 -0000 1.5 +++ image.inc 25 Jul 2005 11:34:29 -0000 @@ -78,6 +78,7 @@ function image_toolkit_invoke($method, $ * 'height': image's height in pixels * 'extension': commonly used extension for the image * 'mime_type': image's MIME type ('image/jpeg', 'image/gif', etc.) + * 'file_size': image's physical size (in bytes) */ function image_get_info($file) { if (!is_file($file)) { @@ -86,6 +87,7 @@ function image_get_info($file) { $details = false; $data = @getimagesize($file); + $file_size = @filesize($file); if (is_array($data)) { $extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png'); @@ -93,6 +95,7 @@ function image_get_info($file) { $details = array('width' => $data[0], 'height' => $data[1], 'extension' => $extension, + 'file_size' => $file_size, 'mime_type' => $data['mime']); }