Index: filefield/filefield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.module,v
retrieving revision 1.195
diff -u -r1.195 filefield.module
--- filefield/filefield.module	13 Apr 2009 16:36:31 -0000	1.195
+++ filefield/filefield.module	14 Apr 2009 01:25:53 -0000
@@ -745,7 +745,7 @@
           $errors[] = t('The image will not fit between the dimensions of %min_dimensions and %max_dimensions pixels.', array('%min_dimensions' => $minimum_dimensions, '%max_dimensions' => $maximum_dimensions));
         }
         // Try to resize the image to fit the dimensions.
-        elseif (image_get_toolkit() && image_scale($file->filepath, $file->filepath, $max_width, $max_height)) {
+        elseif (image_get_toolkit() && @image_scale($file->filepath, $file->filepath, $max_width, $max_height)) {
           drupal_set_message(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', array('%dimensions' => $maximum_dimensions)));
 
           // Clear the cached filesize and refresh the image information.
Index: imagefield/imagefield_file.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagefield/imagefield_file.inc,v
retrieving revision 1.17
diff -u -r1.17 imagefield_file.inc
--- imagefield/imagefield_file.inc	1 Apr 2009 19:47:22 -0000	1.17
+++ imagefield/imagefield_file.inc	14 Apr 2009 01:25:53 -0000
@@ -86,9 +86,11 @@
   if ($info['width'] <= $size[0] && $info['height'] <= $size[1]) {
     file_copy($source, $destination);
   }
-  else {
-    image_scale($source, $destination, $size[0], $size[1]);
+  elseif (image_get_toolkit() && @image_scale($source, $destination, $size[0], $size[1])) {
     // Set permissions. This is done for us when using file_copy().
     @chmod($destination, 0664);
   }
+  else {
+    drupal_set_message(t('An image thumbnail was not able to be created.'), 'error');
+  }
 }
