PHP.nl

imagescale

imagescale

Scale an image using the given new width and height

 **imagescale** GdImage $image int $width int $height int $mode
scales an image using the given

interpolation algorithm. imagescale

Opmerking: > Unlike many of other image functions, does not modify the passed ; instead, a image is returned. imagescale``imagenew

widthThe width to scale the image to.

heightThe height to scale the image to. If omitted or negative, the aspect ratio will be preserved.

mode One of , , , or anything else (will use two pass).

 `IMG_NEAREST_NEIGHBOUR``IMG_BILINEAR_FIXED``IMG_BICUBIC``IMG_BICUBIC_FIXED`> **Opmerking:** > is not yet supported.
   `IMG_WEIGHTED4`

Return the scaled image object on successreturn.falseforfailure.

Throws a if or would cause over-/underflow. ValueError``width``height

Throws a if is invalid. ValueError``mode

imagecopyresized``imagecopyresampled