--- inline.module.cvs	2006-05-04 03:03:00.000000000 +0200
+++ inline.module	2006-06-06 22:32:37.136498700 +0200
@@ -252,7 +252,7 @@ function _inline_substitute_tags(&$node,
  */
 function _inline_decide_img_tag($file) {
   $inlined = array('jpg', 'jpeg', 'pjpeg', 'gif', 'png');
-  $mime = array_pop(explode('/', $file->filemime));
+  $mime = strtolower( array_pop( explode( '/', $file->filemime ) ) );
   if (in_array($mime, $inlined)) {
     // read settings
     list($maxwidth, $maxheight) = explode(',',variable_get('inline_img_dim', '150,150'));
