Index: image.imagemagick.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.imagemagick.inc,v
retrieving revision 1.17
diff -u -p -u -r1.17 image.imagemagick.inc
--- image.imagemagick.inc	4 Sep 2007 17:17:33 -0000	1.17
+++ image.imagemagick.inc	4 Sep 2007 19:06:14 -0000
@@ -93,7 +93,7 @@ function _image_imagemagick_alter_invoke
  * Resize an image to the given width and height.
  */
 function image_imagemagick_resize($source, $dest, $width, $height) {
-  $args = array('resize' => '-resize '. $width .'x'. $height .'!');
+  $args = array('resize' => '-resize '. (int) $width .'x'. (int) $height .'!');
   $args = _image_imagemagick_alter_invoke('resize', $source, $args);
   return _image_imagemagick_convert($source, $dest, $args);
 }
@@ -114,7 +114,7 @@ function image_imagemagick_rotate($sourc
  * Crop an image to the specified dimensions.
  */
 function image_imagemagick_crop($source, $dest, $x, $y, $width, $height) {
-  $args = array('crop' => '-crop '. $width .'x'. $height .'+'. $x .'+'. $y);
+  $args = array('crop' => '-crop '. (int) $width .'x'. (int) $height .'+'. (int) $x .'+'. (int) $y);
   $args = _image_imagemagick_alter_invoke('crop', $source, $args);
   return _image_imagemagick_convert($source, $dest, $args);
 }

