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

Responsive / auto-optimized image configuration #918

Open
jaanli opened this issue Feb 25, 2024 · 1 comment
Open

Responsive / auto-optimized image configuration #918

jaanli opened this issue Feb 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jaanli
Copy link

jaanli commented Feb 25, 2024

For projects that rely on auto-generated assets (e.g. thousands of dashboards, like in this discussion), it would be nice to have image assets auto-optimized with tools like Sharp -- and support for responsive images.

Not sure if this is out-of-scope for Framework! Thinking of plugins like this for Vite: https://github.com/ElMassimo/vite-plugin-image-presets

@jaanli jaanli added the enhancement New feature or request label Feb 25, 2024
@mbostock
Copy link
Member

This is probably covered already by “file transforms“ idea #849, which is registering data loaders for request patterns, which is a variant of the parameterized data loader idea #245. But it is a common-enough need that it might be worth calling out and designing specifically for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants