# How to crop face from image?

**URL:** <https://community.imagekit.io/t/how-to-crop-face-from-image/63>\
**Category:** Image API\
**Created:** [February 25, 2025, 2:16pm UTC](https://community.imagekit.io/t/how-to-crop-face-from-image/63 "2025-02-25T14:16:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigneshskrishnan](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@vigneshskrishnan](https://community.imagekit.io/u/vigneshskrishnan)\
**Post date:** [February 25, 2025, 2:16pm UTC](https://community.imagekit.io/t/how-to-crop-face-from-image/63/1 "2025-02-25T14:16:45Z")

</div>

I have tried normal cropping with ImageKit but I have a specific requirement to create profile images for users, for which it would be great to get a crop just around the face in the image. How to use ImageKit to crop only the face from the image?

---

<div class="post-metadata">

**Author:** ![imagekit\_kashish](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.imagekit.io/imagekit_kashish/32/8_2.png) [@imagekit\_kashish](https://community.imagekit.io/u/imagekit_kashish)\
**Post date:** [March 5, 2025, 5:52am UTC](https://community.imagekit.io/t/how-to-crop-face-from-image/63/2 "2025-03-05T05:52:27Z")

</div>

ImageKit offers the [fo-face](https://imagekit.io/docs/image-resize-and-crop#face-cropping---fo-face) transformation, which crops an image while keeping the face in focus. This ensures perfectly framed thumbnails, making it ideal for profile pictures that highlight the subject effectively.

**Example:**

**Original Image:**  
[https://ik.imagekit.io/ikmedia/docs\_images/examples/example\_portrait\_1.jpg](https://ik.imagekit.io/ikmedia/docs_images/examples/example_portrait_1.jpg)

**Face-Crop:**  
[https://ik.imagekit.io/ikmedia/tr:w-150,h-150,fo-face/docs\_images/examples/example\_portrait\_1.jpg](https://ik.imagekit.io/ikmedia/tr:w-150,h-150,fo-face/docs_images/examples/example_portrait_1.jpg?updatedAt=1703135626910)
