Name

imagecopyresized

Synopsis

imagecopyresized($dest_image, $src_image, $dest_x, $dest_y, $src_x, $src_y,
   $dest_width, $dest_heigth, $src_width, $src_heigth);

Copies a rectangular portion from src_image and pastes it into dest_image, resizing if necessary. The arguments dest_x and dest_y are the coordinates of the top left of the rectangle for the destination image, and dest_height and dest_width are the height and width. The arguments src_x, src_y, src_width, and src_heigth are the corresponding values for the source image.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.