How to create a circular image crop with ImageKit

My original image is 500x500. But I want to create a perfect round image for my UI with the focus on the person’s face. Is it possible with ImageKit?

Yes, ImageKit offers a radius transformation that can create a perfectly round image when the radius value is set to max. When combined with the fo-face transformation, it ensures the image remains circular while focusing on the face. Check out the example below:

https://ik.imagekit.io/ikmedia/tr:w-150,h-150,fo-face,r-max/docs_images/examples/example_portrait_1.jpg