--- imagecache1.module	2008-10-08 02:38:11.000000000 +0100
+++ imagecache.module	2008-10-26 17:44:00.000000000 +0000
@@ -414,8 +414,9 @@ function _imagecache_apply_action($actio
  */
 
 function imagecache_transfer($path) {
-  if (function_exists('mime_content_type')) {
-    $mime = mime_content_type($path);
+  if (function_exists('imageapi_image_open')) {
+    $image = imageapi_image_open($path);
+    $mime =  $image->info['mime_type'];
   }
   else {
     $size = getimagesize($path);
