Next.js Discord

Discord Forum

image sizes

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
How can I configure my next project to give me images at 28x28?

I have tried adding imageSizes array and using correct sizes query on image, but it always seem to try fetch the largest size. I have width & height properties set.

4 Replies

Northeast Congo LionOP
Yes I’ve done yhat
But I want to render a larger size at bigger screens
@joulev `<Image src={...} width={28} height={28} />`?
North Pacific hake
That still loads the large image just adds width properties to it. Would be great if NextJS did a Image Cache and saved the resized image locally and then fetched that for future use.