değer verebileceğim x y koordinatı 1 tane var ben iki koordinat arası kısmı kesmek istiyorum

kodu şu şekilde kullandım

$im = imagecreatefrompng('a.png');
$size = min(imagesx($im), imagesy($im));
$im2 = imagecrop($im, ['x' =>112, 'y' => 86, 'width' => $size, 'height' => $size]);
if ($im2 !== FALSE) {
imagepng($im2, 'example-cropped.png');
}


resim olarak bu çıktı