---
title: getResizedImageDataUrl
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 46
---Public Function
Get the size of an image from its source.
##### Parameters
`dataURLForImage`
```ts
string
```
The image file as a string.
`width`
```ts
number
```
The desired width.
`height`
```ts
number
```
The desired height.
##### Returns
```ts
Promise
```