Next.js Discord

Discord Forum

Next/Image cannot open images in new tab

Unanswered
Gray Flycatcher posted this in #help-forum
Open in Discord
Gray FlycatcherOP
For example, if i have
<Image  className={`aboutImage`} src={`/daliabluebells_highres_009.jpg`} alt={``} width={500} height={500}/>
and I go and right click, open in new tab, it just downloads a .webp of the image, at this download address:
http://localhost:3000/_next/image?url=%2Fdaliabluebells_highres_009.jpg&w=640&q=75

instead I would want it to acc open the original image i specified in the src, just in a new tab. So localhost:3000/daliabluebells_highres_009.jpg. How can I get this to happen?

1 Reply

the "Open image in new tab", it uses the current's src, there is no way around it as this has to do with browser and not with react/next.