How is the `srcset` variable for an `Image` component generated?
Unanswered
Jersey Wooly posted this in #help-forum
Jersey WoolyOP
To be clear, I mean the
Only one
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
@Jersey Wooly To be clear, I mean the `srcset` variable for the `img` tag generated by a Next `Image` component? I have this tsx:
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.
it analyzes the picture set in the
src and it generates several optimised picture on build time