function image_resize

Same name and namespace in other branches
  1. 7.x drupal-7.x/includes/image.inc \image_resize()

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

Parameters

$source: The file path of the source image.

$destination: The file path of the destination image.

$width: The target width, in pixels.

$height: The target height, in pixels.

Return value

TRUE or FALSE, based on success.

Related topics

Archivo

drupal-6.x/includes/image.inc, line 223
API for manipulating images.

Código

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