I need to get the height and width from the end of a url BEFORE LOADING THE IMG. The url I have looks like this:
https://images.or/domain/hiddenuid_2021_logo.webp?auto=compress,format&rect=0,0,350,400&w=350&h=400
As you can see both width and height are represented by w=350 and h=400
I am using React/Nextjs.
Once I can get the height and width, I will then display it in the container as follows:
<Image src={image.url} width={width} height={height} />
What is the easiest way to accomplish this?