---
title: getImageSizeFromSrc
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 43
---Public Function
Get the size of an image from its source.
##### Parameters
`dataURL`
```ts
string
```
The file as a string.
##### Returns
```ts
Promise<{
w: number
h: number
}>
```