Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

[Snippets] Responsive images sizes #2

Open
stafyniaksacha opened this issue Sep 24, 2022 · 0 comments
Open

[Snippets] Responsive images sizes #2

stafyniaksacha opened this issue Sep 24, 2022 · 0 comments

Comments

@stafyniaksacha
Copy link
Member

stafyniaksacha commented Sep 24, 2022

At this time, only fixed width/height parameters are available.

We need to be able to define sizes instead if we want to serve images at the optimal size depending on screen.

This can be done easily if we keep the same aspect ratio. If we want other ratio, we can generate them using position/resize sharp filters.

A UI will be required to preview the result of those filters (more generally, we may need a UI to preview all sharp/ipx filters in real time)

We can then apply those ratios with pixel density and formats filters in snippet generation.

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

No branches or pull requests

1 participant