Next.js Discord

Discord Forum

How is the `srcset` variable for an `Image` component generated?

Unanswered
Jersey Wooly posted this in #help-forum
Open in Discord
Jersey WoolyOP
To be clear, I mean the srcset variable for the img tag generated by a Next Image component? I have this tsx:
import Image from "next/image";
<Image
  src="/graphics/trans-nirex-logo.png"
  title="Nirex Logo"
  alt="Nirex Logo"
  className="icraft-logo normal-logo"
  width={160}
  height={105}
/>

Only one src provided, yet when this renders, it includes a srcset as well, as in the pic.

1 Reply