Obtain the pixel dimensions of an image via its URL.
URL to the image file.
Promise resolving to an object with width and height.
const {width, height} = await getImageDimensions('tiles/layer.png'); Copy
const {width, height} = await getImageDimensions('tiles/layer.png');
Obtain the pixel dimensions of an image via its URL.