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

[Feature] Add support for automatic image scaling with client hints #104

Open
gshel opened this issue Dec 5, 2023 · 0 comments · May be fixed by #105
Open

[Feature] Add support for automatic image scaling with client hints #104

gshel opened this issue Dec 5, 2023 · 0 comments · May be fixed by #105
Assignees

Comments

@gshel
Copy link
Contributor

gshel commented Dec 5, 2023

Feature Request

Is your feature request related to a problem? Please describe.

I would like to specify a Cloudinary crop mode from my netlify.toml file; the current default value is limit and cannot be changed via netlify.toml.

I would also like to be able to specify "auto" as the value for maxSize.height and/or maxSize.width so that I can scale images automatically using Client Hints.

Describe the solution you'd like

Allowing a string to be used as the value of maxSize.height and maxSize.width would allow users to:

  1. scale image widths automagically
  2. dictate how big the "jumps" between automagic image widths should be, reducing cache misses

Users should be able to specify maxSize.crop to help with optimizing the final aesthetic result of an automatically scaled image on a site.

Describe alternatives you've considered

I haven't considered alternatives, but I'm open to suggestions~

@gshel gshel linked a pull request Dec 5, 2023 that will close this issue
11 tasks
@colbyfayock colbyfayock self-assigned this Oct 1, 2024
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 a pull request may close this issue.

2 participants