# 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) |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudimage.io/transformations/image-operations/crop/face-hide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
