> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemtipsandtricks/widgets/global-widgets/image-capture.md).

# Image capture

## The Image capture widget

Using this widget the user can upload an image or take a snapshot using a webcam. The user can then zoom in or out before the image gets cropped to get the best possible result. Some browsers may not have webcam support.

<div data-full-width="true"><figure><img src="/files/z2pXkMzCRQL5kIGj7rGb" alt=""><figcaption></figcaption></figure></div>

### Properties

| Properties | Datatype        | Description                                                                                                                                                                |
| ---------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Image      | datafield, file | The user can edit the provided image or upload a new image or webcam snapshot that will be stored here. This should be a datafield from your datamodel with the type file. |

### Appearance

| Properties                   | Datatype | Description                                                                                 |
| ---------------------------- | -------- | ------------------------------------------------------------------------------------------- |
| Width                        | number   | The width of the output image in pixels.                                                    |
| Height                       | number   | The height of the output image in pixels.                                                   |
| Webcam not supported message | text     | The user will be notified with this message when taking a webcam snapshot is not available. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.wem.io/platform/wemtipsandtricks/widgets/global-widgets/image-capture.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.
