Crop Image to Circle with Transparency
I'm using the following to code to crop an image to circle, 300x300. However, the image obtained have a white background. How can I make it transparent instead of white? and make every image png (because transparency is only supported by PNG)
$image = \Cloudinary\Uploader::upload($_FILES["file"]["tmp_name"],
array(
"width" => "300", "height" => "300",
"crop" => "thumb",
"gravity" => "face",
"radius" => "max"
));
Post is closed for comments.
Comments
3 comments