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

Explain how srcset sizes are generated #103

Closed
Sananes opened this issue Nov 22, 2020 · 3 comments
Closed

Explain how srcset sizes are generated #103

Sananes opened this issue Nov 22, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@Sananes
Copy link

Sananes commented Nov 22, 2020

Hey guys,

Do you have more examples or could you elaborate more on how the srcset sizes get generated. I've spent hours trying to figure it out when using the sizes prop.

Thanks in advance!

@bdrtsky
Copy link

bdrtsky commented Nov 24, 2020

@Sananes this module WIP, and it's likely to change very soon, so I suggest to wait a little bit, a week or two for documentation and release

@danielroe danielroe added the documentation Improvements or additions to documentation label Apr 14, 2021 — with Volta.net
@danielroe danielroe changed the title Explain sizes Explain how srcset sizes are generated Apr 14, 2021
@AndrewBogdanovTSS
Copy link

@Sananes do you need anything beyond what is described here? https://image.nuxtjs.org/components/nuxt-img#sizes
If not - please, close the issue

@pi0 pi0 closed this as completed Jun 4, 2021
@pi0
Copy link
Member

pi0 commented Jun 4, 2021

Please reopen if needed more context. Basically sizes prop, auto-generates srcset and sizes attributes based on predefined screen sizes. For example when using sm:80vw, a resized version with width=512px (sm:640*0.8=512px) and added to srcset.

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

No branches or pull requests

5 participants