'cutting out parts of an image

PHP has https://www.php.net/imagecrop but what if I want to do the opposite of crop? I want to provide the coordinates to a given rectangular area and delete just that area instead of keeping just that area.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source