Does Hugo provide a function that detects the external image width and height

I tried to use the imageConfig function, but got an error:

no such file or directory

You can use the image’s .Width and .Height if you got it as a Resource