# Extract layout-aware content from image
> Supported in: Batch, Faster
Extracts layout-aware content from an image. Returns structured blocks with bounding boxes, text content, and block types. Supports configurable output formats.
**Expression categories:** Media
## Declared arguments
* **Languages to detect:** Languages to detect in the image.
*Set\>*
* **Media reference:** The column containing media references to image files in a media set.
*Expression\*
* **Scripts to detect:** Scripts to detect in the image.
*Set\>*
* *optional* **Error handling:** Determines the behavior of the pipeline for inputs that fail to process.
*Enum\*
* *optional* **Output format:** The format of the extracted text content within blocks.
*Enum\*
**Output type:** *Array\, confidence:Double>>*
## Examples
### Example 1: Base case
**Argument values:**
* **Languages to detect:** {`ENG`}
* **Media reference:** `mediaReference`
* **Scripts to detect:** {}
* **Error handling:** `FAIL_FAST`
* **Output format:** `TEXT`
| mediaReference | **Output** |
| ----- | ----- |
| {"mimeType":"image/png","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.main.media-set.a", "mediaItemRid":"ri.mio.main.media-item.a"}}} | \[ {
**block\_id**: block-0,
**block\_index**: 0,
**block\_type**: Text,
&... |
***