imagecopyresampled

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Copy and resize part of an image with resampling
<?php imagecopyresampled(    GdImage $dst_image,    GdImage $src_image,    int $dst_x,    int $dst_y,    int $src_x,    int $src_y,    int $dst_width,    int $dst_height,    int $src_width,    int $src_height): bool
<?php         }




        $result = imagecopyresampled(

            $modified,

            $resource,

            $dst_x,

            $dst_y,

            $src_x,

            $src_y,

            $dst_w,

            $dst_h,

            $src_w,

            $src_h

        );




        $image->setCore($modified);