nextjs-image Questions

3

I am trying to fetch images from Strapi into my NextJS Application, but whatever I am trying to do I am always getting the error "url" parameter is valid but upstream response is invalid...
Dorelle asked 20/10, 2021 at 18:59

3

I know that in Next.js we have Image component, but the problem I have with it is that I can't use it as a normal HTML tag like <img />. I have to give it a layout, but there's no option to c...
Ephemeral asked 1/7, 2021 at 2:33

2

I am using Next JS and Material UI together in my project. for Image optimization, I would like to use the Next JS Image component. currently, my card media looks like below. I am getting the image...
Papa asked 10/8, 2021 at 5:29

1

I am having issues with indexing the images that are optimized by the Next/Image component these images are in the public folder of my Next.js app. I haven't seen any examples where any resource/UR...
Quail asked 12/3, 2022 at 11:6

2

In Material UI the components that display images have a parameter for the image. eg: <Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" /> In Next.js v10 there i...
Deangelis asked 25/11, 2020 at 8:39

3

Solved

I've been having a tough time working with NextJS's Image component. I want to setup a banner image. This image must only cover a certain amount of space on the screen at any time, regardless of sc...
Accelerometer asked 23/12, 2020 at 18:8

2

Solved

I am using the latest version of NextJS 10.0.9. I've got an Image that I'm trying to display, however I'm receiving the error: Error: Image with src "https://picsum.photos/480/270" must u...
Lieu asked 24/3, 2021 at 15:56

5

I am using the NextJS Image component like this: <Image src="https://firebasestorage.googleapis.com/v0/b/africatech-7cf1b.appspot.com/o/images%2F1606851317444_impact-logo-sq-Owen-Hancock.pn...
Gertudegerty asked 6/1, 2021 at 19:12

2

The image is working just fine. Here is the code <Image layout="fixed" src="/images/example.jpeg" alt="Example image" width="140" height="140&qu...
Downtown asked 4/4, 2022 at 17:56

4

I am using react dropzone to upload multi-image in my simple application. For showing which type of images are drop for that I make a separate component with TypeScript. But Next.js image src is sh...
Reverberation asked 27/6, 2021 at 5:13

4

I'm leaning Next.js and I have found that next/image is wrapping the img with two spans and adding inline style to the img tag which overriding my class style How can I remove the inline style and ...
Coppock asked 3/12, 2021 at 5:41

3

I have a bunch of images in a hidden gallery, only shown when a user clicks on a certain button. On the development server, everything is fine, no errors or issues, but when I deploy my website and...
Ministrant asked 5/12, 2020 at 9:55

2

Solved

I am currently working on a page using NextJs and TailwindCss. The user has the ability of loading an image locally and setting the number of pieces horiz/vert (rows/cols) that they wish the image ...
Mac asked 16/5, 2022 at 14:3

2

I am trying to use the Next.js Image component with images that all have unique sizes. Their example states the image will stretch to the parent div width and height. I've tried wrapping them but d...
Dissolution asked 30/4, 2021 at 1:56

0

What did I do? Setup a NextJs project to ship different image sizes for different screens sizes with the help of next/image component with the following settings: <Image src={image} alt={title...
Levitt asked 31/3, 2022 at 10:23

3

Solved

I'm using Next.js 10.0.7 and next-images 1.7 and big images take some seconds to appear. I'm using the components correctly, you can see bellow, but I think that there is a solution to my problem. ...
Wedge asked 15/3, 2021 at 11:47

3

Solved

I am providing the src prop to the UserCard but then also I am getting the error below. Error Unhandled Runtime Error Error: Image is missing required "src" property. Make sure you pass &...
Linebreeding asked 26/7, 2021 at 4:26

0

I am running a Next.js app and a Storybook component library. I would like to use next/image in Storybook so that I can take advantage of the image optimization. I followed this article to mock nex...
Adventurer asked 14/1, 2022 at 12:7

1

Solved

I have a blog that uses images with different scales and aspect ratios. Some are short and wide, some are tall and narrow. You can see an example here. I want my images to: Be at most as wide as t...
Accommodation asked 6/11, 2021 at 19:0

1

In my app I allow users to upload their images. Upon uploading it goes into public folder, and in database there is only a direct link for future requests. When displaying these images on the page ...
Docker asked 26/5, 2021 at 22:29

2

I'm trying to import an image in Next.js but I get this error. I don't know what's the problem, could someone here help me about this? The image is located in public folder, this is the Error...
Lennox asked 3/10, 2021 at 3:25

2

Solved

I'm getting some images from Firebase using getStaticProps, and then displaying them with next Image component. However, they take a while to display, how can I display a placeholder while they hav...
Chubby asked 18/5, 2021 at 7:24

2

Solved

I am using the following code to show an image: import Image from 'next/image' // ... <Image src={ausrufezeichen} alt="Ausrufezeichen"/> The following HTML Code is being rendered: ...
Proprietress asked 8/9, 2021 at 14:26

0

I have setup my next js code with some static images into the system which is used as <Image height={50} width={140} alt="Alt" objectFit="contain" src="/images/logo...
Predestinate asked 17/8, 2021 at 12:37

2

Solved

I want to show a skeleton while my image is loading. I tried to pass an onLoad prop in the new Image component provided by NextJS but the function fires off before the image is loaded. Here is my c...
Alwyn asked 20/1, 2021 at 15:36

© 2022 - 2024 — McMap. All rights reserved.