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

# Face hide

Crop operation which removes faces from the top of the image

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                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FArHUA5ePHcH6bGjolkMF%2Fimage.png?alt=media\&token=28c7c859-22fd-4706-84f0-b435eef7184d) | [/docs/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://fdocs.filerobot.com/docs/woman_dress.jpg?w=450\&h=600\&gravity=auto)                                                                          |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FyYhFX8Keig2tpFsZIvAf%2Fimage.png?alt=media\&token=da60bb42-9520-407b-b68a-3a2e0732ae2a) | [/docs/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://fdocs.filerobot.com/docs/woman_dress.jpg?func=facehide\&w=450\&h=600\&face_margin=10) |
