Then why don't you do it? :-)
From the manual:
-- begin quote --
ImageCopyResized
(unknown)
ImageCopyResized -- Copy and resize part of an image
Description
int imagecopyresized (int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int
srcH)
ImageCopyResized() copies a rectangular portion of one image to another image. Dst_im is the destination image, src_im is the source image identifier. If the
source and destination coordinates and width and heights differ, appropriate stretching or shrinking of the image fragment will be performed. The coordinates refer to
the upper left corner. This function can be used to copy regions within the same image (if dst_im is the same as src_im) but if the regions overlap the results will be
unpredictable.
-- end quote --
The whole thing could look like this (fill in the appropriate coords etc yourself)
<?php
$src_im = ImageCreateFromPng("test.png");
int imagecopyresized (int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int
srcH)
ImagePng($dst_im);
?>