--- includes/image.inc	2006/08/18 12:16:57 1.14
+++ includes/image.inc	2006/09/10 19:14:16
@@ -223,6 +223,11 @@ function image_gd_resize($source, $desti
   }
 
   $res = imageCreateTrueColor($width, $height);
+  $col = imagecolorallocatealpha($res, 0, 0, 0, 127);
+  imagealphablending($res, false);
+  imagefilledrectangle($res, 0, 0, $width, $height, $col);
+  imagealphablending($res, true);
+  imagesavealpha($res, true);
   imageCopyResampled($res, $im, 0, 0, 0, 0, $width, $height, $info['width'], $info['height']);
   $result = image_gd_close($res, $destination, $info['extension']);
 
