image_resize

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/image.inc, строка 221

Версии
5 – 6
image_resize($source, $destination, $width, $height)

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

Параметры

$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 TRUE or FALSE, based on success.

Связанные темы

Код

<?php
function image_resize($source, $destination, $width, $height) {
  return image_toolkit_invoke('resize', array($source, $destination, $width, $height));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему