> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# v1.ReportImage2

- Package: [@gooddata/sdk-code-schemas](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-schemas/src/v1/metadata.ts

A bare string is the image URL. Anything more is written as a mapping. The id belongs to whatever draws the image, not to the image itself.

**Signature:**

```typescript
export interface ReportImage2 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [alt\_text?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2alt_text) |  | string | _(Optional)_ |
| [asset?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2asset) |  | [Id51](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.id51/index.md) | _(Optional)_ |
| [fit?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2fit) |  | "contain" \| "cover" \| "fill" | _(Optional)_ How the image fills its area: kept whole inside it, filling it and cropped to do so, or stretched to its shape. Defaults to contain. |
| [placeholder?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2placeholder) |  | [ReportSlotPlaceholder](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportslotplaceholder/index.md) | _(Optional)_ |
| [style?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2style) |  | [ReportImageStyle](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimagestyle/index.md) | _(Optional)_ |
| [url?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.reportimage2/index.md#v1reportimage2url) |  | string | _(Optional)_ Image URL, supporting {variables} - a logo uses {logo}. Mutually exclusive with asset. |

## Property details

### v1.ReportImage2.alt_text

**Signature:**

```typescript
alt_text?: string;
```

### v1.ReportImage2.asset

**Signature:**

```typescript
asset?: Id51;
```

### v1.ReportImage2.fit

How the image fills its area: kept whole inside it, filling it and cropped to do so, or stretched to its shape. Defaults to contain.

**Signature:**

```typescript
fit?: "contain" | "cover" | "fill";
```

### v1.ReportImage2.placeholder

**Signature:**

```typescript
placeholder?: ReportSlotPlaceholder;
```

### v1.ReportImage2.style

**Signature:**

```typescript
style?: ReportImageStyle;
```

### v1.ReportImage2.url

Image URL, supporting {variables} - a logo uses {logo}. Mutually exclusive with asset.

**Signature:**

```typescript
url?: string;
```
