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

Get the size of an image from its source.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`dataURL`

</ParametersTableName>
<ParametersTableDescription>

```ts
string
```

The file as a string.




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

##### Returns


```ts
Promise<{
  w: number
  h: number
}>
```

