Index: image_resize_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_resize_filter/image_resize_filter.module,v
retrieving revision 1.26
diff -u -r1.26 image_resize_filter.module
--- image_resize_filter.module	6 Jun 2009 20:08:01 -0000	1.26
+++ image_resize_filter.module	7 Jul 2009 00:20:57 -0000
@@ -421,7 +421,14 @@
 
     // Resize the local image.
     if (!file_exists($image['destination'])) {
-      image_resize($image['local_path'], $image['destination'], $image['expected_size']['width'], $image['expected_size']['height']);
+      if (module_exists('imageapi') && imageapi_default_toolkit()) {
+        $res = imageapi_image_open($image['local_path']);
+        imageapi_image_resize($res, $image['expected_size']['width'], $image['expected_size']['height']);
+        imageapi_image_close($res, $image['destination']);
+      }
+      else {
+        image_resize($image['local_path'], $image['destination'], $image['expected_size']['width'], $image['expected_size']['height']);
+      }
     }
 
     // Replace the existing image source with the resized image.
