imagescale

(PHP 5 >= 5.5.0)

imagescaleScale an image using the given new width and height

Description

resource imagescale ( resource $image , int $new_width [, int $new_height = -1 [, int $mode = IMG_BILINEAR_FIXED ]] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

new_width

new_height

mode

One of IMG_NEAREST_NEIGHBOUR, IMG_BILINEAR_FIXED, IMG_BICUBIC, IMG_BICUBIC_FIXED or anything else (will use two pass).

Return Values

Return scaled image resource on success or FALSE on failure.

Коментарии

Автор:
Seemingly, you can't omit the width the same way you do with the height. If you write -1 for the width and specify a number for the height it will return false
2023-03-30 05:15:50
http://php5.kiev.ua/manual/ru/function.imagescale.html

    Поддержать сайт на родительском проекте КГБ