--- transparency.inc 2008-11-26 09:15:58.000000000 -0600 +++ transparency.inc 2009-03-26 13:17:03.196000000 -0500 @@ -124,10 +124,10 @@ imagealphablending($base_image, TRUE); // Place the current image over it - $foreground = $image->res; - $success = imagecopy($base_image, $image->res, 0, 0, 0, 0, $info['width'], $info['height']); + $foreground = $image->resource; + $success = imagecopy($base_image, $image->resource, 0, 0, 0, 0, $info['width'], $info['height']); - $image->res = $base_image; + $image->resource = $base_image; return TRUE; } } @@ -151,7 +151,7 @@ $info = $image->info; if (!$info) { return FALSE; } - $im1 = $image->res; + $im1 = $image->resource; imagesavealpha( $im1, TRUE); imagealphablending($im1, FALSE); @@ -177,8 +177,8 @@ $alpha = (1- ((1-($lightness/256)) * (1-($rgba_array['alpha']/127)))) * 127; if (!$color) $background=$rgba_array; //paint the pixel - $color_to_paint = imagecolorallocatealpha($image->res, $background['red'], $background['green'], $background['blue'], $alpha); - imagesetpixel($image->res, $j, $i, $color_to_paint); + $color_to_paint = imagecolorallocatealpha($image->resource, $background['red'], $background['green'], $background['blue'], $alpha); + imagesetpixel($image->resource, $j, $i, $color_to_paint); } } return TRUE;