You are here

function image_resize in Drupal 5

Same name and namespace in other branches
  1. 4 includes/image.inc \image_resize()
  2. 6 includes/image.inc \image_resize()
  3. 7 includes/image.inc \image_resize()

Resize an image to the given dimensions (ignoring aspect ratio).

Parameters

$source The filepath of the source image.:

$destination The file path of the destination image.:

$width The target width.:

$height The target height.:

File

includes/image.inc, line 144

Code

function image_resize($source, $destination, $width, $height) {
  return image_toolkit_invoke('resize', array(
    $source,
    $destination,
    $width,
    $height,
  ));
}