Dealing with API Fetched Images
Unanswered
Prairie Warbler posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Prairie WarblerOP
Hey folks! 👋
Quick question: I'm using Next.js' "Image" component with images fetched from an API.
Since I don't have the image dimensions, how should I handle the
Should I ask the backend team to include width and height in the API response, or are there other solutions?
Thanks!
Quick question: I'm using Next.js' "Image" component with images fetched from an API.
Since I don't have the image dimensions, how should I handle the
width
prop requirement?Should I ask the backend team to include width and height in the API response, or are there other solutions?
Thanks!
![Image](https://cdn.discordapp.com/attachments/1212467925320077332/1212467925525725224/nextjs_image1-1.webp?ex=65f1f1c0&is=65df7cc0&hm=7bac446ce7e1c9d82935d8d62028e65a446cb07a2f4cda84326d1794b2e876e7&)