> For the complete documentation index, see [llms.txt](https://docs.cloudimage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudimage.io/transformations/image-operations/crop/face-hide.md).

# Face hide

Crops out the topmost part of an image if it contains a face.

To control the margin when cropping the face out, you can use the **face\_margin=Y** operation where **Y** is a percentage of the face height. Its default value is 20. You can also use negative numbers if you would like to keep part of the face.

<mark style="color:orange;">**func=facehide**</mark>

## Examples

| Preview                          | Syntax                                                                                                                                                                                                                                                                                                                                                             |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ![](/files/HG7uspq2X8OGY4XloXCV) | [/samples.scaleflex.com/woman\_dress.jpg?<mark style="color:orange;">**w=450**</mark>&<mark style="color:orange;">**h=600**</mark>&<mark style="color:orange;">**gravity=auto**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/woman_dress.jpg?w=450\&h=600\&gravity=auto)                                                                          |
| ![](/files/YvvNtlQORIbG5311Vaue) | [/samples.scaleflex.com/woman\_dress.jpg?<mark style="color:orange;">**func=facehide**</mark>&<mark style="color:orange;">**w=450**</mark>&<mark style="color:orange;">**h=600**</mark>&<mark style="color:orange;">**face\_margin=10**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/woman_dress.jpg?func=facehide\&w=450\&h=600\&face_margin=10) |
