Skip to content
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

Blurry images on big screen #56

Open
jbelien opened this issue Dec 15, 2020 · 6 comments
Open

Blurry images on big screen #56

jbelien opened this issue Dec 15, 2020 · 6 comments
Labels

Comments

@jbelien
Copy link
Member

jbelien commented Dec 15, 2020

I'm not sure what is the exact reason of this effect but on my (big) screen, all images are blurry (despite the original size of the image).

On the following example, the original image is 1173px × 683px and is resized 800px × 466px on the website.
I think that the resized image is not big enough and that's why the image is blurry but making it bigger will impact the load time.

image

@jbelien jbelien added the design label Dec 15, 2020
@auloin
Copy link
Contributor

auloin commented Dec 15, 2020

The image is still in 1173px x 683px.
image

The resizing is via css using object-fit: cover which keeps the original aspect ratio while filling the container. But it's compressed using webp.

What's the result if you view the image in a new tab and compare it with the image stored in the repo?

@jbelien
Copy link
Member Author

jbelien commented Dec 15, 2020

Here is the link of the image : https://okbe-website.netlify.app/static/b07b7a5cc50ddb9752f13fd812f5536d/bc8e0/equalstreetnames.brussels.png

It is indeed resized to 800px × 466px.

EDIT: But the "full size" version seems to also be available : https://okbe-website.netlify.app/static/b07b7a5cc50ddb9752f13fd812f5536d/525fc/equalstreetnames.brussels.png

Why isn't that one displayed ?

@auloin
Copy link
Contributor

auloin commented Dec 15, 2020

Which browser are you using?
I'm getting this image https://okbe-website.netlify.app/static/b07b7a5cc50ddb9752f13fd812f5536d/fa858/equalstreetnames.brussels.webp

Also do you have the same issue with other activity pages?

@jbelien
Copy link
Member Author

jbelien commented Dec 15, 2020

Screenshot is from Mozilla Firefox 83.0 but it happens on Google Chrome and Microsoft Edge as well.

Might be due to the size/resolution of the screen (2256px × 1504px) ?

@auloin
Copy link
Contributor

auloin commented Dec 15, 2020

gatsby-image allows the browser to pick the image, I'm looking at the configuration of the sizes attribute.

@auloin
Copy link
Contributor

auloin commented Dec 15, 2020

I can't figure it out. When I look into the network tab, only the image in the original size is loaded and I'm seeing all the images in the same quality. Whether its the one on github (not formatted) or the one loaded on the website... Tested on mobile and getting the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants