I'm trying to create a image with rounded border in Php.
I tried with this but only creates a white circle:
<?php
header('Content-type: image/jpeg');
$img = imagecreatefromjpeg('person_1.jpg');
$color = imagecolorallocate($img, 255, 255, 255);
imagefilledellipse($img , 300, 300, 600, 600, $color);
imagejpeg($img);
imagedestroy($img);
?>
I'm trying to do something like (sorry for the bad example): https://i.stack.imgur.com/A7ueN.jpg
And I get this: https://i.stack.imgur.com/Dfw5I.jpg
Hope you can help me with this, thank you.