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

add support for new maxdpr directive #11

Open
jonarnes opened this issue Feb 9, 2023 · 0 comments
Open

add support for new maxdpr directive #11

jonarnes opened this issue Feb 9, 2023 · 0 comments

Comments

@jonarnes
Copy link
Contributor

jonarnes commented Feb 9, 2023

maxdpr is a url directive wich define a maxumum DPR (Device Pixel Ratio) to consider when resizing an image. maxdpr can take values from 1 to 4 (including).

image.png?imgeng=/maxdpr_2 will cap the dpr to 2 even if the device has a a screen supporting dpr of 4, for example.

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

No branches or pull requests

1 participant