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
orFALSE
, based on success.
Связанные темы
Код
<?php
function image_resize($source, $destination, $width, $height) {
return image_toolkit_invoke('resize', array($source, $destination, $width, $height));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии