-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JPG largely not working #28
Comments
Hi @Mikeysauce, thank you for the detailed issue. So far, I never had problems with JPG images from unsplash, I always used them for testing this package.
If they are successful, can you provide me one of the images which is causing the problem for you? Maybe the original one and the corrupt one which got copied into the .next folder so I can investigate the problem better :) Thank you! |
Hi Cyril, thanks for the swift reply. I cleared out my node_modules and have tested again and still see the same behaviour. This is one of the images which is causing problems. https://unsplash.com/photos/LaTGDnc27ys Here is the npm install feedback after clearing out node_modules: |
Hi @Mikeysauce First of all, I'm very sorry for the late response. I was on vacation and didn't take my laptop with me. But I'm back now and will invest more time into this issue. I tried it with your image first and it worked for me. |
Hi @cyrilwanner, Firstly you have nothing to apologise for, I didn't pay anything for this plugin. Secondly, your suggestion was right on the money and I shouldn't have included it when testing. I swapped the modifier to Thanks for the great work on this. |
JPG files seem to be broken in version
1.4.1
. I have found that some files work fine, but for example 5 entirely random jpg files which I tested from unsplash.com failed to display. The image does get copied to the .next/images folder as per the default config, but the image is malformed and unreadable, both in the browser and on my local system.I have tried the same setup in windows 10 as well as mac high sierra, using both nextjs 5.1 and 6.1.
My base
next.config.js
is as follows:Test Case:
The path which I am referencing is correctly being updated to point to
/_next/static/images/nathan-peterson-792622-unsplash-b7e78930f997020df3638a54a25421f8.jpg
, but this image is malformed and not displaying.The text was updated successfully, but these errors were encountered: