---
title: getResizedImageDataUrl
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 46
---<Small>Public Function</Small>

Get the size of an image from its source.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`dataURLForImage`

</ParametersTableName>
<ParametersTableDescription>

```ts
string
```

The image file as a string.




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`width`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The desired width.




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`height`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The desired height.




</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
Promise<string>
```

