Is there a way to get the images sizes?

Hi, how are you? I’m building a blog and using Next.js. I want to use the component and the sizes are required. Is there a way to get the real images sizes so I don’t have to hardcode them? Now from the CMS only the URL is coming.

Thanks