imagescale

Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Scale an image using the given new width and height
<?php imagescale(    GdImage $image,    int $width,    int $height = -1,    int $mode = IMG_BILINEAR_FIXED): GdImage|false