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

🎨 Adjust image resolution #1941 #2017

Merged
merged 5 commits into from
Jan 3, 2024
Merged

🎨 Adjust image resolution #1941 #2017

merged 5 commits into from
Jan 3, 2024

Conversation

padms
Copy link
Contributor

@padms padms commented Dec 8, 2023

No description provided.

@padms padms requested a review from a team as a code owner December 8, 2023 12:16
Copy link
Contributor

@fernandolucchesi fernandolucchesi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also check for the quote component

@@ -12,6 +23,7 @@ export const useSanityLoader = (image: ImageWithAlt, maxWidth: number, aspectRat
? Math.round(width * aspectRatio)
: Math.round(width * (cropped.height / cropped.width))

return imageUrlBuilder.width(width).height(height).auto('format').quality(70)
return imageUrlBuilder.width(width).height(height).auto('format').quality(70).dpr(devicePixelRatio)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make any difference. I would not recommend adding this since it is more js code for not a reasonable improvement.
I checked it and the issue is with max-width and sizes:

image vs
image

@padms padms merged commit c84aba0 into main Jan 3, 2024
4 checks passed
@millianapia millianapia deleted the padms/1941 branch February 15, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants