## getImageSrc() function

Returns an image URL for the resource, if one is available.

**Signature:**

```typescript
export declare function getImageSrc(resource: Resource): string | undefined;
```

## Parameters

| Parameter | Type     | Description               |
|-----------|----------|---------------------------|
| resource  | Resource | The input resource.       |

**Returns:**

string | undefined

The image URL for the resource or undefined.

- [getImageSrc() function](/content/docs/sdk/core.getimagesrc#getimagesrc-function/index.html)
- [Parameters](/content/docs/sdk/core.getimagesrc#parameters/index.html)
