--- imageapi_gd.module 2009-10-13 00:11:17.000000000 +0100 +++ imageapi_gd.module 2009-10-13 00:10:24.000000000 +0100 @@ -92,7 +92,7 @@ function imageapi_gd_image_close($image, * @return * TRUE or FALSE, based on success. */ -function imageapi_gd_image_crop(&$image, $x, $y, $width, $height) { +function imageapi_gd_image_crop($image, $x, $y, $width, $height) { $res = imageapi_gd_create_tmp($image, $width, $height); if (!imagecopyresampled($res, $image->resource, 0, 0, $x, $y, $width, $height, $width, $height)) { @@ -120,7 +120,7 @@ function imageapi_gd_image_crop(&$image, * @return * TRUE or FALSE, based on success. */ -function imageapi_gd_image_resize(&$image, $width, $height) { +function imageapi_gd_image_resize($image, $width, $height) { $res = imageapi_gd_create_tmp($image, $width, $height); if (!imagecopyresampled($res, $image->resource, 0, 0, 0, 0, $width, $height, $image->info['width'], $image->info['height'])) { @@ -152,7 +152,7 @@ function imageapi_gd_image_resize(&$imag * @return * TRUE or FALSE, based on success. */ - function imageapi_gd_image_rotate(&$image, $degrees, $background) { + function imageapi_gd_image_rotate($image, $degrees, $background) { // PHP installations using non-bundled GD do not have imagerotate. if (!function_exists('imagerotate')) { require_once drupal_get_path('module', 'imageapi_gd') .'/imagerotate.inc'; @@ -202,7 +202,7 @@ function imageapi_gd_image_resize(&$imag return TRUE; } -function imageapi_gd_image_sharpen(&$image, $radius, $sigma, $amount, $threshold) { +function imageapi_gd_image_sharpen($image, $radius, $sigma, $amount, $threshold) { $threshold = round($threshold * 255); $image->resource = imageapi_gd_unsharp_mask($image->resource, $radius, $sigma, $amount, $threshold); return TRUE; @@ -218,7 +218,7 @@ function imageapi_gd_image_sharpen(&$ima * @return * TRUE or FALSE, based on success. */ -function imageapi_gd_image_desaturate(&$image) { +function imageapi_gd_image_desaturate($image) { // PHP installations using non-bundled GD do not have imagefilter. if (!function_exists('imagefilter')) { require_once drupal_get_path('module', 'imageapi_gd') .'/imagefilter.inc';