function image_gd_close in Drupal 4
Same name and namespace in other branches
- 5 includes/image.inc \image_gd_close()
- 6 includes/image.gd.inc \image_gd_close()
GD helper to write an image resource to a destination file.
3 calls to image_gd_close()
- image_gd_crop in includes/
image.inc - Crop an image using the GD toolkit.
- image_gd_resize in includes/
image.inc - Scale an image to the specified size using GD.
- image_gd_rotate in includes/
image.inc - Rotate an image the given number of degrees.
File
- includes/
image.inc, line 308
Code
function image_gd_close($res, $destination, $extension) {
$extension = str_replace('jpg', 'jpeg', $extension);
$close_func = 'image' . $extension;
if (!function_exists($close_func)) {
return false;
}
return $close_func($res, $destination);
}